mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
tools/target_dec_fuzzer: Also fuzz codec_tag
This should improve coverage Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2d3ccfa863
commit
cc50d113c8
@ -190,6 +190,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
ctx->sample_rate = bytestream2_get_le32(&gbc);
|
||||
ctx->channels = (unsigned)bytestream2_get_le32(&gbc) % FF_SANE_NB_CHANNELS;
|
||||
ctx->block_align = bytestream2_get_le32(&gbc);
|
||||
ctx->codec_tag = bytestream2_get_le32(&gbc);
|
||||
|
||||
if (extradata_size < size) {
|
||||
ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user