]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Make sure avcodec_set_dimensions() is used when rv20 changes resolution.
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 23 Nov 2009 19:22:19 +0000 (19:22 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 23 Nov 2009 19:22:19 +0000 (19:22 +0000)
This should fix lowres resolution changes.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20589 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/rv10.c

index d552bf9501c35bb3cf00059b135a3dc0fc026df9..1e5907433c61d66219a38eb7e64bd33e3f5caf4f 100644 (file)
@@ -370,8 +370,9 @@ static int rv20_decode_picture_header(MpegEncContext *s)
             if (avcodec_check_dimensions(s->avctx, new_h, new_w) < 0)
                 return -1;
             MPV_common_end(s);
-            s->width  = s->avctx->width = new_w;
-            s->height = s->avctx->height= new_h;
+            avcodec_set_dimensions(s->avctx, new_w, new_h);
+            s->width  = new_w;
+            s->height = new_h;
             if (MPV_common_init(s) < 0)
                 return -1;
         }