diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-16 21:28:55 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-16 21:28:55 +0000 |
commit | ee83232aa9c28eec951aa09a8fa8ca6eae668c46 (patch) | |
tree | bf95dcc4fc62faac498070fa60854bd343308d29 | |
parent | ba321adb944507f637106ca77050818eeb85e333 (diff) | |
download | ffmpeg-ee83232aa9c28eec951aa09a8fa8ca6eae668c46.tar.gz |
Avoid using log2() freebsd does not support it.
Originally committed as revision 13184 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/zmbvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c index f51688eea8..a12c014b9b 100644 --- a/libavcodec/zmbvenc.c +++ b/libavcodec/zmbvenc.c @@ -246,7 +246,7 @@ static av_cold int encode_init(AVCodecContext *avctx) 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; |