Missed one log2().
authorBenjamin Larsson <banan@ludd.ltu.se>
Fri, 17 Nov 2006 21:43:46 +0000 (21:43 +0000)
committerBenjamin Larsson <banan@ludd.ltu.se>
Fri, 17 Nov 2006 21:43:46 +0000 (21:43 +0000)
Originally committed as revision 7117 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/imc.c

index 5b5f23b92b14782b26d2110c92984a6eec71903a..7360b640969414456313847aa5500def143e1b78 100644 (file)
@@ -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;