Browse code

svq1dec: call avcodec_set_dimensions() after dimensions changed. 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>

Michael Niedermayer authored on 2011/11/19 03:10:21
Showing 1 changed files
... ...
@@ -658,6 +658,7 @@ static int svq1_decode_frame(AVCodecContext *avctx,
658 658
     av_dlog(s->avctx, "Error in svq1_decode_frame_header %i\n",result);
659 659
     return result;
660 660
   }
661
+  avcodec_set_dimensions(avctx, s->width, s->height);
661 662
 
662 663
   //FIXME this avoids some confusion for "B frames" without 2 references
663 664
   //this should be removed after libavcodec can handle more flexible picture types & ordering