[FFmpeg-cvslog] r15362 - trunk/libavcodec/aac.c

superdump subversion
Thu Sep 18 17:35:08 CEST 2008


Author: superdump
Date: Thu Sep 18 17:35:08 2008
New Revision: 15362

Log:
Cast the return value of get_bits() to signed integer such that the subtraction
is conducted as a signed calculation.

Patch by Alex Converse (alex converse gmail com)


Modified:
   trunk/libavcodec/aac.c

Modified: trunk/libavcodec/aac.c
==============================================================================
--- trunk/libavcodec/aac.c	(original)
+++ trunk/libavcodec/aac.c	Thu Sep 18 17:35:08 2008
@@ -979,7 +979,7 @@ static int decode_cce(AACContext * ac, G
     }
 
     sign = get_bits(gb, 1);
-    scale = pow(2., pow(2., get_bits(gb, 2) - 3));
+    scale = pow(2., pow(2., (int)get_bits(gb, 2) - 3));
 
     if ((ret = decode_ics(ac, sce, gb, 0, 0)))
         return ret;




More information about the ffmpeg-cvslog mailing list