diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2001-08-15 13:11:31 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2001-08-15 13:11:31 +0000 |
commit | 935442b522dc198da6d73b58fc1236ef97278ca9 (patch) | |
tree | f74a7e306a2a745ffcf9c580798e2e20861e5d10 /libavcodec/mpegaudio.c | |
parent | 0c23ead1154cc4c35586574b2589a1049a53211f (diff) | |
download | ffmpeg-935442b522dc198da6d73b58fc1236ef97278ca9.tar.gz |
log2 to av_log2
Originally committed as revision 101 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudio.c')
-rw-r--r-- | libavcodec/mpegaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegaudio.c b/libavcodec/mpegaudio.c index 7785257821..ec8c82de3e 100644 --- a/libavcodec/mpegaudio.c +++ b/libavcodec/mpegaudio.c @@ -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; |