diff svq1dec.c @ 5513:9f8219a3b86f libavcodec

use get_bits1(..) instead get_bits(.., 1)
author alex
date Thu, 09 Aug 2007 00:13:31 +0000
parents eca08bfad00f
children 27b50e016757
line wrap: on
line diff
--- a/svq1dec.c	Wed Aug 08 23:58:23 2007 +0000
+++ b/svq1dec.c	Thu Aug 09 00:13:31 2007 +0000
@@ -137,7 +137,7 @@
           break;\
       }\
       /* divide block if next bit set */\
-      if (get_bits (bitbuf, 1) == 0)\
+      if (get_bits1 (bitbuf) == 0)\
         break;\
       /* add child nodes */\
       list[n++] = list[i];\
@@ -617,7 +617,7 @@
   }
 
   /* unknown fields */
-  if (get_bits (bitbuf, 1) == 1) {
+  if (get_bits1 (bitbuf) == 1) {
     skip_bits1 (bitbuf);       /* use packet checksum if (1) */
     skip_bits1 (bitbuf);       /* component checksums after image data if (1) */
 
@@ -625,13 +625,13 @@
       return -1;
   }
 
-  if (get_bits (bitbuf, 1) == 1) {
+  if (get_bits1 (bitbuf) == 1) {
     skip_bits1 (bitbuf);
     skip_bits (bitbuf, 4);
     skip_bits1 (bitbuf);
     skip_bits (bitbuf, 2);
 
-    while (get_bits (bitbuf, 1) == 1) {
+    while (get_bits1 (bitbuf) == 1) {
       skip_bits (bitbuf, 8);
     }
   }