aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alsdec.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2009-11-16 17:42:43 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2009-11-16 17:42:43 +0000
commit6e44ba15504c05adb4ba610d83205bb7c499fb58 (patch)
tree910661d34317012741c036fa07b4fc5f20026bc6 /libavcodec/alsdec.c
parent830628e11caa35306fb214fb890e6c0c481fd6c8 (diff)
downloadffmpeg-6e44ba15504c05adb4ba610d83205bb7c499fb58.tar.gz
Use get_bits_left() instead of size_in_bits - get_bits_count().
Originally committed as revision 20543 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r--libavcodec/alsdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 064e143f74..ac4a1f86a3 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -380,7 +380,7 @@ static void parse_bs_info(const uint32_t bs_info, unsigned int n,
*/
static int32_t decode_rice(GetBitContext *gb, unsigned int k)
{
- int max = gb->size_in_bits - get_bits_count(gb) - k;
+ int max = get_bits_left(gb) - k;
int q = get_unary(gb, 0, max);
int r = k ? get_bits1(gb) : !(q & 1);