diff options
author | qinxialei <xialeiqin@gmail.com> | 2021-04-22 11:20:18 +0800 |
---|---|---|
committer | qinxialei <xialeiqin@gmail.com> | 2021-04-22 11:20:18 +0800 |
commit | 81ce37eb93e8ce442ecb1855a4e7166628128ac7 (patch) | |
tree | 2af6329f74f88ce090d08c61db5fb4bed8656584 /examples | |
parent | 4dab0c756a3cdd65b43470a4cca835422b32ca6e (diff) | |
parent | 2381d803c76105f44717d75f089ec37f51e5cfe4 (diff) | |
download | libgav1-81ce37eb93e8ce442ecb1855a4e7166628128ac7.tar.gz libgav1-81ce37eb93e8ce442ecb1855a4e7166628128ac7.tar.bz2 libgav1-81ce37eb93e8ce442ecb1855a4e7166628128ac7.zip |
Update upstream source from tag 'upstream/0.16.3'
Update to upstream version '0.16.3'
with Debian dir a433e04a69210eb8fcdd6089240e161eb33f0590
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gav1_decode.cc | 3 | ||||
-rw-r--r-- | examples/logging.h | 2 |
2 files changed, 4 insertions, 1 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) || diff --git a/examples/logging.h b/examples/logging.h index c0bcad7..cf5a09f 100644 --- a/examples/logging.h +++ b/examples/logging.h @@ -46,7 +46,7 @@ constexpr const char* Basename(const char* file_name, size_t offset) { #define LIBGAV1_EXAMPLES_LOG_ERROR(error_string) \ do { \ constexpr const char* libgav1_examples_basename = \ - ::libgav1::examples::Basename(__FILE__, sizeof(__FILE__) - 1); \ + libgav1::examples::Basename(__FILE__, sizeof(__FILE__) - 1); \ fprintf(stderr, "%s:%d (%s): %s.\n", libgav1_examples_basename, __LINE__, \ __func__, error_string); \ } while (false) |