# HG changeset patch # User michael # Date 1210973335 0 # Node ID 0f70462b5c212c8150ad952556ca43f357683717 # Parent 021d6167cc1139815e68aa04bdc168b57c6423d8 Avoid using log2() freebsd does not support it. diff -r 021d6167cc11 -r 0f70462b5c21 zmbvenc.c --- 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;