aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-03-09 17:55:32 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-20 03:41:32 +0200
commitf8769b1a702bcfb0cd2979eae30a04dad93059bc (patch)
tree8dcd03301bdd66f5a415762b28fc8b6b05be1c30
parentb27bcc32c7ffea8ae81d6edbb9c101bd21dd91d9 (diff)
downloadffmpeg-f8769b1a702bcfb0cd2979eae30a04dad93059bc.tar.gz
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> (cherry picked from commit 6e913f212907048d7009cf2f15551781c69b9985) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/vp56.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c
index 0010408847..9d4162bb96 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];