tools/target_dec_fuzzer: Test lowres

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2023-01-08 13:52:19 +01:00
parent 402d98c9d4
commit 8d5de4e12f
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 4 additions and 0 deletions

View File

@ -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) {