svq1dec: call avcodec_set_dimensions() after dimensions changed.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 18 Nov 2011 18:10:21 +0000 (19:10 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 21 Nov 2011 21:19:22 +0000 (22:19 +0100)
Fixes NGS00148

Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4931c8f0f10bf8dedcf626104a6b85bfefadc6f2)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 661ee45f8881bb551eb403472e60c38a7c2818aa)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/svq1dec.c

index 7fef10b..7c4e5c9 100644 (file)
@@ -676,6 +676,7 @@ static int svq1_decode_frame(AVCodecContext *avctx,
 #endif
     return result;
   }
+  avcodec_set_dimensions(avctx, s->width, s->height);
 
   //FIXME this avoids some confusion for "B frames" without 2 references
   //this should be removed after libavcodec can handle more flexible picture types & ordering