diff options
-rw-r--r-- | libavcodec/aaccoder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c index f4ae130b7e..252b3592a3 100644 --- a/libavcodec/aaccoder.c +++ b/libavcodec/aaccoder.c @@ -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 |