Browse Source

tools/target_dec_fuzzer: Correct maxsamples_per_frame if maxsamples has been changed

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.4
Michael Niedermayer 5 years ago
parent
commit
c062dd74d7
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      tools/target_dec_fuzzer.c

+ 1
- 0
tools/target_dec_fuzzer.c View File

@@ -185,6 +185,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
case AV_CODEC_ID_ZEROCODEC: maxpixels /= 128; break;
}

maxsamples_per_frame = FFMIN(maxsamples_per_frame, maxsamples);

AVCodecContext* ctx = avcodec_alloc_context3(c);
AVCodecContext* parser_avctx = avcodec_alloc_context3(NULL);


Loading…
Cancel
Save