diff mbox series

[FFmpeg-devel] tools/target_dec_fuzzer: Set bits_per_raw_sample for ARGO

Message ID 20210717090901.1946-1-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel] tools/target_dec_fuzzer: Set bits_per_raw_sample for ARGO
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Michael Niedermayer July 17, 2021, 9:09 a.m. UTC
This may improve coverage of argo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 tools/target_dec_fuzzer.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index 3d06630e46..3963eb1d2a 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -282,6 +282,9 @@  int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
                 av_dict_set_int(&opts, "target_level",  (int)(bytestream2_get_byte(&gbc) % 32) - 31, 0);
                 av_dict_set_int(&opts, "dmix_mode",     (int)(bytestream2_get_byte(&gbc) %  4) -  1, 0);
                 break;
+            case AV_CODEC_ID_ARGO:
+                ctx->bits_per_raw_sample= bytestream2_get_byte(&gbc); // This is a violation of the API but used by the argo demuxer - decoder interface
+                break;
             }
         }