diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2023-01-08 13:52:19 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-06-06 21:37:53 +0200 |
commit | 8d5de4e12f1554575d7cddf7438e36aff352e197 (patch) | |
tree | ef79911c86087ad3c0af1a20aa08bdb032586739 /tools | |
parent | 402d98c9d467dff6931d906ebb732b9a00334e0b (diff) | |
download | ffmpeg-8d5de4e12f1554575d7cddf7438e36aff352e197.tar.gz |
tools/target_dec_fuzzer: Test lowres
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/target_dec_fuzzer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index d8e93f3a21..42de479829 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -428,6 +428,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { ctx->workaround_bugs = bytestream2_get_le32(&gbc); + if (c->p.max_lowres) { + ctx->lowres = bytestream2_get_byte(&gbc) % (c->p.max_lowres+1); + } + if (extradata_size < size) { ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); if (ctx->extradata) { |