Originally committed as revision 19444 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavcodec/aaccoder.c (1 of 1 file). Show all
Unified · Split
| @@ -124,6 +124,8 @@ static float quantize_band_cost(struct AACEncContext *s, const float *in, · 123 unmodified lines | ||
| 124 | 124 | if (!cb) { |
| 125 | 125 | for (i = 0; i < size; i++) |
| 126 | 126 | cost += in[i]*in[i]*lambda; |
| 127 | + if (bits) | |
| 128 | + *bits = 0; | |
| 127 | 129 | return cost; |
| 128 | 130 | } |
| 129 | 131 | #ifndef USE_REALLY_FULL_SEARCH |