changeset 10552:e2d17f7f9408 libavcodec

Update dimensions in AVCodecContext when RV3/4 frame dimensions change
author kostya
date Sun, 22 Nov 2009 07:48:35 +0000
parents a0dd118e82ae
children 86c7e3c6de00
files rv34.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rv34.c	Sat Nov 21 20:56:46 2009 +0000
+++ b/rv34.c	Sun Nov 22 07:48:35 2009 +0000
@@ -1285,8 +1285,8 @@
         if(s->width != r->si.width || s->height != r->si.height){
             av_log(s->avctx, AV_LOG_DEBUG, "Changing dimensions to %dx%d\n", r->si.width,r->si.height);
             MPV_common_end(s);
-            s->width  = r->si.width;
-            s->height = r->si.height;
+            s->width  = s->avctx->width  = r->si.width;
+            s->height = s->avctx->height = r->si.height;
             if(MPV_common_init(s) < 0)
                 return -1;
             r->intra_types_stride = s->mb_width*4 + 4;