1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

log2 to av_log2

Originally committed as revision 101 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Fabrice Bellard
2001-08-15 13:11:31 +00:00
parent 0c23ead115
commit 935442b522
2 changed files with 3 additions and 3 deletions

View File

@@ -317,7 +317,7 @@ static void filter(MpegAudioContext *s, int ch, short *samples, int incr)
for(i=0;i<32;i++) {
norm |= abs(tmp1[i]);
}
n = log2(norm) - 12;
n = av_log2(norm) - 12;
if (n > 0) {
for(i=0;i<32;i++)
tmp1[i] >>= n;
@@ -364,7 +364,7 @@ static void compute_scale_factors(unsigned char scale_code[SBLIMIT],
}
/* compute the scale factor index using log 2 computations */
if (vmax > 0) {
n = log2(vmax);
n = av_log2(vmax);
/* n is the position of the MSB of vmax. now
use at most 2 compares to find the index */
index = (21 - n) * 3 - 3;