From 6e44ba15504c05adb4ba610d83205bb7c499fb58 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 16 Nov 2009 17:42:43 +0000 Subject: Use get_bits_left() instead of size_in_bits - get_bits_count(). Originally committed as revision 20543 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/alsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/alsdec.c') 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); -- cgit v1.2.3