mirror of https://git.ffmpeg.org/ffmpeg.git
tools/target_dec_fuzzer: Set extradata for the parser
This should improve coverage Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
9c8df64a70
commit
a0fd56f55e
|
@ -303,6 +303,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||||
return 0; // Failure of avcodec_open2() does not imply that a issue was found
|
return 0; // Failure of avcodec_open2() does not imply that a issue was found
|
||||||
}
|
}
|
||||||
parser_avctx->codec_id = ctx->codec_id;
|
parser_avctx->codec_id = ctx->codec_id;
|
||||||
|
parser_avctx->extradata_size = ctx->extradata_size;
|
||||||
|
parser_avctx->extradata = av_memdup(ctx->extradata, ctx->extradata_size);
|
||||||
|
|
||||||
|
|
||||||
int got_frame;
|
int got_frame;
|
||||||
AVFrame *frame = av_frame_alloc();
|
AVFrame *frame = av_frame_alloc();
|
||||||
|
|
Loading…
Reference in New Issue