From c91dce994d38d02431cba324775bce8b969428a5 Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Fri, 28 May 2010 21:29:56 +0000 Subject: [PATCH] aacenc: Remove an unnecessary division from the TLS. Originally committed as revision 23368 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/aaccoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c index 1af09d4..f3193cd 100644 --- a/libavcodec/aaccoder.c +++ b/libavcodec/aaccoder.c @@ -712,12 +712,12 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, sce->ics.swb_sizes[g], sce->sf_idx[w*16+g], cb, - lambda, + 1.0f, INFINITY, &b); bits += b; } - dists[w*16+g] = (dist - bits) / lambda; + dists[w*16+g] = dist - bits; if (prev != -1) { bits += ff_aac_scalefactor_bits[sce->sf_idx[w*16+g] - prev + SCALE_DIFF_ZERO]; } -- 2.7.4