aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzzer/obu_parser_fuzzer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fuzzer/obu_parser_fuzzer.cc')
-rw-r--r--tests/fuzzer/obu_parser_fuzzer.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/fuzzer/obu_parser_fuzzer.cc b/tests/fuzzer/obu_parser_fuzzer.cc
index 634a802..f71ca17 100644
--- a/tests/fuzzer/obu_parser_fuzzer.cc
+++ b/tests/fuzzer/obu_parser_fuzzer.cc
@@ -41,6 +41,11 @@ constexpr size_t kMaxDataSize = 200 * 1024;
#endif
inline void ParseObu(const uint8_t* const data, size_t size) {
+ size_t av1c_size;
+ const std::unique_ptr<uint8_t[]> av1c_box =
+ libgav1::ObuParser::GetAV1CodecConfigurationBox(data, size, &av1c_size);
+ static_cast<void>(av1c_box);
+
libgav1::InternalFrameBufferList buffer_list;
libgav1::BufferPool buffer_pool(libgav1::OnInternalFrameBufferSizeChanged,
libgav1::GetInternalFrameBuffer,