[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec vorbis.c,1.5,1.6
Michael Niedermayer CVS
michael
Mon May 30 00:50:24 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv31774
Modified Files:
vorbis.c
Log Message:
ilog() -> av_log2()
Index: vorbis.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/vorbis.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- vorbis.c 29 May 2005 22:11:05 -0000 1.5
+++ vorbis.c 29 May 2005 22:50:22 -0000 1.6
@@ -52,14 +52,7 @@
}
}
-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;
More information about the ffmpeg-cvslog
mailing list