mirror of https://git.ffmpeg.org/ffmpeg.git
tools/target_dec_fuzzer: Fuzz skip_frame
Should allow coverage of related code Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c52c99a18f
commit
9c8df64a70
|
@ -266,6 +266,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||||
|
|
||||||
ctx->idct_algo = bytestream2_get_byte(&gbc) % 25;
|
ctx->idct_algo = bytestream2_get_byte(&gbc) % 25;
|
||||||
flushpattern = bytestream2_get_le64(&gbc);
|
flushpattern = bytestream2_get_le64(&gbc);
|
||||||
|
ctx->skip_frame = bytestream2_get_byte(&gbc) - 254 + AVDISCARD_ALL;
|
||||||
|
|
||||||
|
|
||||||
if (flags & 0x20) {
|
if (flags & 0x20) {
|
||||||
switch (ctx->codec_id) {
|
switch (ctx->codec_id) {
|
||||||
|
|
Loading…
Reference in New Issue