OSDN Git Service
(root)
/
coroid
/
libav_saccubus.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
f51688e
..
a12c014
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;