changeset 1379:f0d3fdee007e libavcodec

get_bits -> skip_bits
author al3x
date Fri, 25 Jul 2003 13:36:08 +0000
parents 1831d86117a3
children b120aed7bf84
files svq1.c
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/svq1.c	Fri Jul 25 13:15:16 2003 +0000
+++ b/svq1.c	Fri Jul 25 13:36:08 2003 +0000
@@ -616,9 +616,9 @@
       printf ("embedded message: \"%s\"\n", (char *) msg);
     }
 
-    get_bits (bitbuf, 2);
-    get_bits (bitbuf, 2);
-    get_bits (bitbuf, 1);
+    skip_bits (bitbuf, 2);
+    skip_bits (bitbuf, 2);
+    skip_bits1 (bitbuf);
 
     /* load frame size */
     frame_size_code = get_bits (bitbuf, 3);
@@ -639,21 +639,21 @@
 
   /* unknown fields */
   if (get_bits (bitbuf, 1) == 1) {
-    get_bits (bitbuf, 1);       /* use packet checksum if (1) */
-    get_bits (bitbuf, 1);       /* component checksums after image data if (1) */
+    skip_bits1 (bitbuf);       /* use packet checksum if (1) */
+    skip_bits1 (bitbuf);       /* component checksums after image data if (1) */
 
     if (get_bits (bitbuf, 2) != 0)
       return -1;
   }
 
   if (get_bits (bitbuf, 1) == 1) {
-    get_bits (bitbuf, 1);
-    get_bits (bitbuf, 4);
-    get_bits (bitbuf, 1);
-    get_bits (bitbuf, 2);
+    skip_bits1 (bitbuf);
+    skip_bits (bitbuf, 4);
+    skip_bits1 (bitbuf);
+    skip_bits (bitbuf, 2);
 
     while (get_bits (bitbuf, 1) == 1) {
-      get_bits (bitbuf, 8);
+      skip_bits (bitbuf, 8);
     }
   }