Browse Source

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
tags/v0.6
Alex Converse 16 years ago
parent
commit
a5762c9b59
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/aaccoder.c

+ 2
- 0
libavcodec/aaccoder.c View File

@@ -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


Loading…
Cancel
Save