Skip to content
Snippets Groups Projects
Commit ee83232a authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Avoid using log2() freebsd does not support it.

Originally committed as revision 13184 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ba321adb
No related branches found
No related tags found
No related merge requests found
...@@ -246,7 +246,7 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -246,7 +246,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
int lvl = 9; int lvl = 9;
for(i=1; i<256; i++) 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; c->avctx = avctx;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment