[FFmpeg-cvslog] r20572 - trunk/libavcodec/rv34.c

kostya subversion
Sun Nov 22 08:48:36 CET 2009


Author: kostya
Date: Sun Nov 22 08:48:35 2009
New Revision: 20572

Log:
Update dimensions in AVCodecContext when RV3/4 frame dimensions change

Modified:
   trunk/libavcodec/rv34.c

Modified: trunk/libavcodec/rv34.c
==============================================================================
--- trunk/libavcodec/rv34.c	Sun Nov 22 03:07:10 2009	(r20571)
+++ trunk/libavcodec/rv34.c	Sun Nov 22 08:48:35 2009	(r20572)
@@ -1285,8 +1285,8 @@ static int rv34_decode_slice(RV34DecCont
         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;



More information about the ffmpeg-cvslog mailing list