You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/vp56: Reset have_undamaged_frame on resolution changes
Fixes: timeout in 758/clusterfuzz-testcase-4720832028868608 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -507,6 +507,8 @@ static int vp56_size_changed(VP56Context *s)
|
|||||||
s->plane_height[0] = s->plane_height[3] = avctx->coded_height;
|
s->plane_height[0] = s->plane_height[3] = avctx->coded_height;
|
||||||
s->plane_height[1] = s->plane_height[2] = avctx->coded_height/2;
|
s->plane_height[1] = s->plane_height[2] = avctx->coded_height/2;
|
||||||
|
|
||||||
|
s->have_undamaged_frame = 0;
|
||||||
|
|
||||||
for (i=0; i<4; i++)
|
for (i=0; i<4; i++)
|
||||||
s->stride[i] = s->flip * s->frames[VP56_FRAME_CURRENT]->linesize[i];
|
s->stride[i] = s->flip * s->frames[VP56_FRAME_CURRENT]->linesize[i];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user