1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Missed one log2().

Originally committed as revision 7117 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Benjamin Larsson 2006-11-17 21:43:46 +00:00
parent 468f8102d5
commit 3644d47241

View File

@ -301,7 +301,7 @@ static int bit_allocation (IMCContext* q, int stream_format_code, int freebits,
highest = FFMAX(highest, q->flcoeffs1[i]); highest = FFMAX(highest, q->flcoeffs1[i]);
for(i = 0; i < BANDS-1; 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; q->flcoeffs4[BANDS - 1] = limit;