aom: av1_dec_fuzzer: add aom_codec_peek_stream_info coverage

From 753413f8a171b3594a7d0da0aa157981a910d253 Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Thu, 9 May 2024 10:39:30 -0700
Subject: [PATCH] av1_dec_fuzzer: add aom_codec_peek_stream_info coverage

Change-Id: I511539292cb8c2098c81f5fe3d711b9739482ffa
---
 examples/av1_dec_fuzzer.cc | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/examples/av1_dec_fuzzer.cc b/examples/av1_dec_fuzzer.cc
index e9388b706..6f3305e01 100644
--- a/examples/av1_dec_fuzzer.cc
+++ b/examples/av1_dec_fuzzer.cc
@@ -67,8 +67,12 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     data += IVF_FRAME_HDR_SZ;
     frame_size = std::min(size, frame_size);
 
-    const aom_codec_err_t err =
-        aom_codec_decode(&codec, data, frame_size, nullptr);
+    aom_codec_stream_info_t stream_info;
+    aom_codec_err_t err =
+        aom_codec_peek_stream_info(codec_interface, data, size, &stream_info);
+    static_cast<void>(err);
+
+    err = aom_codec_decode(&codec, data, frame_size, nullptr);
     static_cast<void>(err);
     aom_codec_iter_t iter = nullptr;
     aom_image_t *img = nullptr;