mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-13 19:05:37 +00:00
Avoid using log2() freebsd does not support it.
Originally committed as revision 13184 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ba321adb94
commit
ee83232aa9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue