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

kostya subversion at mplayerhq.hu
Wed Aug 15 19:41:21 CEST 2007


Author: kostya
Date: Wed Aug 15 19:41:21 2007
New Revision: 818

Log:
Ignore incorrect slices

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Wed Aug 15 19:41:21 2007
@@ -1408,6 +1408,7 @@ static int rv40_decode_frame(AVCodecCont
 
             init_get_bits(&s->gb, buf + offset, size * 8);
             rv40_parse_slice_header(r, &r->s.gb, &r->prev_si);
+            if(r->prev_si.type == -1) continue;
             r->prev_si.size = size * 8;
             r->prev_si.end = s->mb_width * s->mb_height;
             if(i+1 < avctx->slice_count){



More information about the FFmpeg-soc mailing list