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

kostya subversion at mplayerhq.hu
Wed Aug 22 13:36:41 CEST 2007


Author: kostya
Date: Wed Aug 22 13:36:41 2007
New Revision: 1146

Log:
Rework check_slice_end()

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Wed Aug 22 13:36:41 2007
@@ -1547,15 +1547,13 @@ static int rv40_decode_macroblock(RV40De
     return 0;
 }
 
-static int check_slice_end(RV40DecContext *r, GetBitContext *gb, MpegEncContext *s)
+static int check_slice_end(RV40DecContext *r, MpegEncContext *s)
 {
     int bits;
     if(s->mb_y >= s->mb_height)
         return 1;
     bits = r->bits - get_bits_count(&s->gb);
-    if(bits < 2)
-        return 1;
-    if(bits < 8 && (show_bits(gb, bits) == 0))
+    if(bits < 0 || (bits < 8 && !show_bits(&s->gb, bits)))
         return 1;
     return 0;
 }



More information about the FFmpeg-soc mailing list