aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vorbis.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-05-29 22:50:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-05-29 22:50:22 +0000
commite19ca8451d1bba65c7760c776aa7f32dbf6a3699 (patch)
tree867eada259468123045fcb9091f5aea074b100e9 /libavcodec/vorbis.c
parent13c2469d7fc6d10acfcb651c2cadf482f43cc4eb (diff)
downloadffmpeg-e19ca8451d1bba65c7760c776aa7f32dbf6a3699.tar.gz
ilog() -> av_log2()
Originally committed as revision 4318 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis.c')
-rw-r--r--libavcodec/vorbis.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libavcodec/vorbis.c b/libavcodec/vorbis.c
index d9a705a14c..1e6d5235a7 100644
--- a/libavcodec/vorbis.c
+++ b/libavcodec/vorbis.c
@@ -52,14 +52,7 @@ unsigned int get_bits_long_le(GetBitContext *s, int n){
}
}
-static unsigned int ilog(unsigned int i) { // unfortunatelly av_log2 uses different rounding
- unsigned int ret=0;
- while (i!=0) {
- ++ret;
- i>>=1;
- }
- return ret;
-}
+#define ilog(i) av_log2(2*(i))
static unsigned int nth_root(unsigned int x, unsigned int n) { // x^(1/n)
unsigned int ret=0, i, j;