summaryrefslogtreecommitdiff
path: root/libavcodec/svq1dec.c
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2007-08-09 00:13:31 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2007-08-09 00:13:31 +0000
commit5fc32c275efb591c5d40d2eb3902225c32494e65 (patch)
tree388f5bdf2cabe6b493335b2c4f4b9ea1fdbe109c /libavcodec/svq1dec.c
parentb6c748edbad9fb8a854f758553cfc8e5a1bbdb9c (diff)
use get_bits1(..) instead get_bits(.., 1)
Originally committed as revision 9999 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq1dec.c')
-rw-r--r--libavcodec/svq1dec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index 9aefce26fd..cbe6547472 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -137,7 +137,7 @@ static const uint8_t string_table[256] = {
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 @@ static int svq1_decode_frame_header (GetBitContext *bitbuf,MpegEncContext *s) {
}
/* 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 @@ static int svq1_decode_frame_header (GetBitContext *bitbuf,MpegEncContext *s) {
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);
}
}