diff options
Diffstat (limited to 'examples/gav1_decode.cc')
-rw-r--r-- | examples/gav1_decode.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/gav1_decode.cc b/examples/gav1_decode.cc index 4de0ba2..1408e8c 100644 --- a/examples/gav1_decode.cc +++ b/examples/gav1_decode.cc @@ -419,6 +419,9 @@ int main(int argc, char* argv[]) { input_buffers.ReleaseInputBuffer(input_buffer); } input_buffer = nullptr; + // Clear any in progress frames to ensure the output frame limit is + // respected. + decoder.SignalEOS(); } } while (input_buffer != nullptr || (!file_reader->IsEndOfFile() && !limit_reached) || |