[FFmpeg-soc] [soc]: r893 - rv40/rv40.c

kostya subversion at mplayerhq.hu
Thu Aug 16 18:56:11 CEST 2007


Author: kostya
Date: Thu Aug 16 18:56:11 2007
New Revision: 893

Log:
Ignore zero dimensions in slice header

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Thu Aug 16 18:56:11 2007
@@ -1293,8 +1293,8 @@ static int rv40_decode_slice(RV40DecCont
     init_get_bits(&r->s.gb, r->slice_data, r->prev_si.size);
     skip_bits(&r->s.gb, r->prev_si.header_size);
     if ((s->mb_x == 0 && s->mb_y == 0) || s->current_picture_ptr==NULL) {
-        s->avctx->coded_width  = r->prev_si.width;
-        s->avctx->coded_height = r->prev_si.height;
+        if(r->prev_si.width) s->avctx->coded_width  = r->prev_si.width;
+        if(r->prev_si.height)s->avctx->coded_height = r->prev_si.height;
         if(MPV_frame_start(s, s->avctx) < 0)
             return -1;
         ff_er_frame_start(s);



More information about the FFmpeg-soc mailing list