comparison aaccoder.c @ 9957:6fb2be900484 libavcodec

When calculating AAC quantized band cost, don't leave garbage in the bit count for the 0 codebook.
author alexc
date Thu, 16 Jul 2009 22:20:17 +0000
parents c5ca5e520fe1
children bd37369189de
comparison
equal deleted inserted replaced
9956:0448219eb490 9957:6fb2be900484
122 #endif /* USE_REALLY_FULL_SEARCH */ 122 #endif /* USE_REALLY_FULL_SEARCH */
123 123
124 if (!cb) { 124 if (!cb) {
125 for (i = 0; i < size; i++) 125 for (i = 0; i < size; i++)
126 cost += in[i]*in[i]*lambda; 126 cost += in[i]*in[i]*lambda;
127 if (bits)
128 *bits = 0;
127 return cost; 129 return cost;
128 } 130 }
129 #ifndef USE_REALLY_FULL_SEARCH 131 #ifndef USE_REALLY_FULL_SEARCH
130 offs[0] = 1; 132 offs[0] = 1;
131 for (i = 1; i < dim; i++) 133 for (i = 1; i < dim; i++)