[FFmpeg-cvslog] r19444 - trunk/libavcodec/aaccoder.c

alexc subversion
Fri Jul 17 00:20:17 CEST 2009


Author: alexc
Date: Fri Jul 17 00:20:17 2009
New Revision: 19444

Log:
When calculating AAC quantized band cost, don't leave garbage in the bit count
for the 0 codebook.

Modified:
   trunk/libavcodec/aaccoder.c

Modified: trunk/libavcodec/aaccoder.c
==============================================================================
--- trunk/libavcodec/aaccoder.c	Fri Jul 17 00:17:20 2009	(r19443)
+++ trunk/libavcodec/aaccoder.c	Fri Jul 17 00:20:17 2009	(r19444)
@@ -124,6 +124,8 @@ static float quantize_band_cost(struct A
     if (!cb) {
         for (i = 0; i < size; i++)
             cost += in[i]*in[i]*lambda;
+        if (bits)
+            *bits = 0;
         return cost;
     }
 #ifndef USE_REALLY_FULL_SEARCH



More information about the ffmpeg-cvslog mailing list