Commit a5762c9b authored by Alex Converse's avatar Alex Converse

When calculating AAC quantized band cost, don't leave garbage in the bit count

for the 0 codebook.

Originally committed as revision 19444 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ca0f1e50
......@@ -124,6 +124,8 @@ static float quantize_band_cost(struct AACEncContext *s, const float *in,
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment