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

kostya subversion at mplayerhq.hu
Wed Aug 22 19:47:48 CEST 2007


Author: kostya
Date: Wed Aug 22 19:47:47 2007
New Revision: 1155

Log:
Interframes with this bit set to zero store width and height too

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Wed Aug 22 19:47:47 2007
@@ -557,10 +557,8 @@ static int rv40_parse_slice_header(RV40D
     if(get_bits1(gb))
         return -1;
     t = get_bits(gb, 13); /// ???
-    if(!si->type)
+    if(!si->type || !get_bits1(gb))
         rv40_parse_picture_size(gb, &w, &h);
-    else
-        get_bits1(gb);
     si->width  = w;
     si->height = h;
     mb_size = ((w + 15) >> 4) * ((h + 15) >> 4);



More information about the FFmpeg-soc mailing list