[FFmpeg-cvslog] avcodec/vp56: Reset have_undamaged_frame on resolution changes

Michael Niedermayer git at videolan.org
Sat Mar 11 03:51:33 EET 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Mar  9 17:55:32 2017 +0100| [6e913f212907048d7009cf2f15551781c69b9985] | committer: Michael Niedermayer

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6e913f212907048d7009cf2f15551781c69b9985
---

 libavcodec/vp56.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c
index 0010408..9d4162b 100644
--- a/libavcodec/vp56.c
+++ b/libavcodec/vp56.c
@@ -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[1] = s->plane_height[2] = avctx->coded_height/2;
 
+    s->have_undamaged_frame = 0;
+
     for (i=0; i<4; i++)
         s->stride[i] = s->flip * s->frames[VP56_FRAME_CURRENT]->linesize[i];
 



More information about the ffmpeg-cvslog mailing list