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/mpeg4audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/mpeg4audio.c') diff --git a/libavcodec/mpeg4audio.c b/libavcodec/mpeg4audio.c index ab51a61e3c..7fe25bd3d6 100644 --- a/libavcodec/mpeg4audio.c +++ b/libavcodec/mpeg4audio.c @@ -32,7 +32,7 @@ */ static int parse_config_ALS(GetBitContext *gb, MPEG4AudioConfig *c) { - if (gb->size_in_bits - get_bits_count(gb) < 112) + if (get_bits_left(gb) < 112) return -1; if (get_bits_long(gb, 32) != MKBETAG('A','L','S','\0')) -- cgit v1.2.3