mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
ca0f1e5092
commit
a5762c9b59
@ -124,6 +124,8 @@ static float quantize_band_cost(struct AACEncContext *s, const float *in,
|
|||||||
if (!cb) {
|
if (!cb) {
|
||||||
for (i = 0; i < size; i++)
|
for (i = 0; i < size; i++)
|
||||||
cost += in[i]*in[i]*lambda;
|
cost += in[i]*in[i]*lambda;
|
||||||
|
if (bits)
|
||||||
|
*bits = 0;
|
||||||
return cost;
|
return cost;
|
||||||
}
|
}
|
||||||
#ifndef USE_REALLY_FULL_SEARCH
|
#ifndef USE_REALLY_FULL_SEARCH
|
||||||
|
Loading…
Reference in New Issue
Block a user