aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorqinxialei <xialeiqin@gmail.com>2021-04-22 11:20:15 +0800
committerqinxialei <xialeiqin@gmail.com>2021-04-22 11:20:15 +0800
commit2381d803c76105f44717d75f089ec37f51e5cfe4 (patch)
tree33f40fb4dfd1039ac262d5f1c1065d298578ddc1 /examples
parente8d277081293b6fb2a5d469616baaa7a06f52496 (diff)
downloadlibgav1-2381d803c76105f44717d75f089ec37f51e5cfe4.tar.gz
libgav1-2381d803c76105f44717d75f089ec37f51e5cfe4.tar.bz2
libgav1-2381d803c76105f44717d75f089ec37f51e5cfe4.zip
New upstream version 0.16.3
Diffstat (limited to 'examples')
-rw-r--r--examples/gav1_decode.cc3
-rw-r--r--examples/logging.h2
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)