[FFmpeg-soc] [soc]: r1415 - rv40/rv34.c

kostya subversion at mplayerhq.hu
Sun Oct 21 14:15:31 CEST 2007


Author: kostya
Date: Sun Oct 21 14:15:31 2007
New Revision: 1415

Log:
reallocate arrays after size change

Modified:
   rv40/rv34.c

Modified: rv40/rv34.c
==============================================================================
--- rv40/rv34.c	(original)
+++ rv40/rv34.c	Sun Oct 21 14:15:31 2007
@@ -1313,6 +1313,9 @@ static int rv34_decode_slice(RV34DecCont
             s->height = r->si.height;
             if(MPV_common_init(s) < 0)
                 return -1;
+            r->intra_types_hist = av_realloc(r->intra_types_hist, s->b4_stride * 4 * 2 * sizeof(int));
+            r->intra_types = r->intra_types_hist + s->b4_stride * 4;
+            r->mb_type = av_realloc(r->mb_type, r->s.mb_stride * r->s.mb_height * sizeof(*r->mb_type));
         }
         s->pict_type = r->si.type ? r->si.type : I_TYPE;
         if(MPV_frame_start(s, s->avctx) < 0)



More information about the FFmpeg-soc mailing list