projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba321ad
)
Avoid using log2() freebsd does not support it.
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 16 May 2008 21:28:55 +0000
(21:28 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 16 May 2008 21:28:55 +0000
(21:28 +0000)
Originally committed as revision 13184 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/zmbvenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/zmbvenc.c
b/libavcodec/zmbvenc.c
index f51688eea82fefbb3b04d8365df042edd687a6e2..a12c014b9b58684c23f984c067bbecab5124d1d5 100644
(file)
--- 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 * log
2(i/(double)(ZMBV_BLOCK*ZMBV_BLOCK)) * 256
;
+ score_tab[i]= -i * log
(i/(double)(ZMBV_BLOCK*ZMBV_BLOCK)) * (256/M_LN2)
;
c->avctx = avctx;