summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-10-12 22:34:00 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-10-14 21:16:00 +0200
commit0c07eb52050b9a608608f9a4ad31f9a5cd4df97a (patch)
tree230a812244a713bc40f7074f89f8b7b03acbfcfa
parent79522411fa53b68743302d16d28156db95466a21 (diff)
downloadffmpeg-streaming-0c07eb52050b9a608608f9a4ad31f9a5cd4df97a.zip
ffmpeg-streaming-0c07eb52050b9a608608f9a4ad31f9a5cd4df97a.tar.gz
tools/target_dec_fuzzer: Also fuzz block_align
This should improve coverage Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--tools/target_dec_fuzzer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index a2c59be..99e89ab 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -185,6 +185,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);
if (extradata_size < size) {
ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);
OpenPOWER on IntegriCloud