[FFmpeg-cvslog] r13184 - trunk/libavcodec/zmbvenc.c
michael
subversion
Fri May 16 23:28:55 CEST 2008
Author: michael
Date: Fri May 16 23:28:55 2008
New Revision: 13184
Log:
Avoid using log2() freebsd does not support it.
Modified:
trunk/libavcodec/zmbvenc.c
Modified: trunk/libavcodec/zmbvenc.c
==============================================================================
--- trunk/libavcodec/zmbvenc.c (original)
+++ trunk/libavcodec/zmbvenc.c Fri May 16 23:28:55 2008
@@ -246,7 +246,7 @@ static av_cold int encode_init(AVCodecCo
int lvl = 9;
for(i=1; i<256; i++)
- score_tab[i]= -i * log2(i/(double)(ZMBV_BLOCK*ZMBV_BLOCK)) * 256;
+ score_tab[i]= -i * log(i/(double)(ZMBV_BLOCK*ZMBV_BLOCK)) * (256/M_LN2);
c->avctx = avctx;
More information about the ffmpeg-cvslog
mailing list