aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-02-07 13:15:55 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2021-07-17 10:48:27 +0200
commit9c8df64a700b321dc42e6f9c8506383a764b4508 (patch)
tree936fdc73d57cfd0b87280c0bd8dc6b9330e94fc2
parentc52c99a18f6e40973e52d99d4bb29e34a66c695a (diff)
downloadffmpeg-9c8df64a700b321dc42e6f9c8506383a764b4508.tar.gz
tools/target_dec_fuzzer: Fuzz skip_frame
Should allow coverage of related code Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--tools/target_dec_fuzzer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index 96b8f81958..a13b3ad08b 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -266,6 +266,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
ctx->idct_algo = bytestream2_get_byte(&gbc) % 25;
flushpattern = bytestream2_get_le64(&gbc);
+ ctx->skip_frame = bytestream2_get_byte(&gbc) - 254 + AVDISCARD_ALL;
+
if (flags & 0x20) {
switch (ctx->codec_id) {