Fixes: Timeout
Fixes: 10292/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5687943864254464
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
int backstep = linesize - avctx->width;
if (bytestream2_get_byte(gb) == 0)
int backstep = linesize - avctx->width;
if (bytestream2_get_byte(gb) == 0)
bytestream2_skip(gb, 1);
init_rangecoder(&s->rc, gb);
bytestream2_skip(gb, 1);
init_rangecoder(&s->rc, gb);
s->current_frame->linesize[0] / 4,
(uint32_t *)s->last_frame->data[0],
s->last_frame->linesize[0] / 4);
s->current_frame->linesize[0] / 4,
(uint32_t *)s->last_frame->data[0],
s->last_frame->linesize[0] / 4);
+ if (ret == 1)
+ return avpkt->size;
} else {
return AVERROR_PATCHWELCOME;
}
} else {
return AVERROR_PATCHWELCOME;
}