diff mpeg4audio.c @ 10535:95f3daa991a2 libavcodec

Use get_bits_left() instead of size_in_bits - get_bits_count().
author rbultje
date Mon, 16 Nov 2009 17:42:43 +0000
parents 33890a382b36
children c7ed26e2011f
line wrap: on
line diff
--- a/mpeg4audio.c	Mon Nov 16 01:56:47 2009 +0000
+++ b/mpeg4audio.c	Mon Nov 16 17:42:43 2009 +0000
@@ -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'))