From 3644d4724120defabf83b726caf097552fbb417d Mon Sep 17 00:00:00 2001 From: Benjamin Larsson Date: Fri, 17 Nov 2006 21:43:46 +0000 Subject: [PATCH] Missed one log2(). Originally committed as revision 7117 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/imc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/imc.c b/libavcodec/imc.c index 5b5f23b92b..7360b64096 100644 --- a/libavcodec/imc.c +++ b/libavcodec/imc.c @@ -301,7 +301,7 @@ static int bit_allocation (IMCContext* q, int stream_format_code, int freebits, highest = FFMAX(highest, q->flcoeffs1[i]); for(i = 0; i < BANDS-1; i++) { - q->flcoeffs4[i] = q->flcoeffs3[i] - log2(q->flcoeffs5[i]); + q->flcoeffs4[i] = q->flcoeffs3[i] - log(q->flcoeffs5[i])/log(2); } q->flcoeffs4[BANDS - 1] = limit;