changeset 6818:0f70462b5c21 libavcodec

Avoid using log2() freebsd does not support it.
author michael
date Fri, 16 May 2008 21:28:55 +0000
parents 021d6167cc11
children 43bede126ef6
files zmbvenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/zmbvenc.c	Fri May 16 13:12:56 2008 +0000
+++ b/zmbvenc.c	Fri May 16 21:28:55 2008 +0000
@@ -246,7 +246,7 @@
     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;