From 5fc32c275efb591c5d40d2eb3902225c32494e65 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 9 Aug 2007 00:13:31 +0000 Subject: use get_bits1(..) instead get_bits(.., 1) Originally committed as revision 9999 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/svq1dec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavcodec/svq1dec.c') 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); } } -- cgit v1.2.3