Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-17 01:28:55 +0400
committerMichael Niedermayer <michaelni@gmx.at>2008-05-17 01:28:55 +0400
commitee83232aa9c28eec951aa09a8fa8ca6eae668c46 (patch)
treebf95dcc4fc62faac498070fa60854bd343308d29 /libavcodec/zmbvenc.c
parentba321adb944507f637106ca77050818eeb85e333 (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.c2
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;