[FFmpeg-soc] [soc]: r1484 - in rv40: rv30.c rv40.c

kostya subversion at mplayerhq.hu
Sat Dec 1 08:23:29 CET 2007


Author: kostya
Date: Sat Dec  1 08:23:29 2007
New Revision: 1484

Log:
Replace get_bits() calls with skip_bits() in cases of ignored result

Modified:
   rv40/rv30.c
   rv40/rv40.c

Modified: rv40/rv30.c
==============================================================================
--- rv40/rv30.c	(original)
+++ rv40/rv30.c	Sat Dec  1 08:23:29 2007
@@ -39,13 +39,13 @@ static int rv30_parse_slice_header(RV34D
     int mb_size;
 
     memset(si, 0, sizeof(SliceInfo));
-    get_bits(gb, 3);
+    skip_bits(gb, 3);
     si->type = get_bits(gb, 2);
     if(si->type == 1) si->type = 0;
     if(get_bits1(gb))
         return -1;
     si->quant = get_bits(gb, 5);
-    get_bits1(gb);
+    skip_bits1(gb);
     t = get_bits(gb, 13);
     skip_bits(gb, r->rpr);
     si->vlc_set = 0;
@@ -54,7 +54,7 @@ static int rv30_parse_slice_header(RV34D
     mb_size = ((w + 15) >> 4) * ((h + 15) >> 4);
     mb_bits = ff_rv34_get_start_offset(gb, mb_size);
     si->start = get_bits(gb, mb_bits);
-    get_bits1(gb);
+    skip_bits1(gb);
     return 0;
 }
 

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Sat Dec  1 08:23:29 2007
@@ -119,7 +119,7 @@ static int rv40_parse_slice_header(RV34D
     if(get_bits(gb, 2))
         return -1;
     si->vlc_set = get_bits(gb, 2);
-    get_bits1(gb);
+    skip_bits1(gb);
     t = get_bits(gb, 13); /// ???
     if(!si->type || !get_bits1(gb))
         rv40_parse_picture_size(gb, &w, &h);



More information about the FFmpeg-soc mailing list