diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-17 01:28:55 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-17 01:28:55 +0400 |
commit | ee83232aa9c28eec951aa09a8fa8ca6eae668c46 (patch) | |
tree | bf95dcc4fc62faac498070fa60854bd343308d29 /libavcodec/zmbvenc.c | |
parent | ba321adb944507f637106ca77050818eeb85e333 (diff) |
Avoid using log2() freebsd does not support it.
Originally committed as revision 13184 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/zmbvenc.c')
-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; |