diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-29 00:10:45 -0400 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-29 18:46:00 -0400 |
commit | 603d62745710220f9ecd97f4d0cc6831394ebcd3 (patch) | |
tree | eb8797a12553e876b14c7754b0680ba134f643a6 | |
parent | 68ba63ebd5fa4e42423def1d8b0d38b5b8593e7f (diff) | |
download | ffmpeg-603d62745710220f9ecd97f4d0cc6831394ebcd3.tar.gz |
avcodec/zmbvenc: use log2 instead of log()/M_LN2
This is likely more precise and conveys the intent better.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
-rw-r--r-- | libavcodec/zmbvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c index df06e37cb2..e832bedbb2 100644 --- a/libavcodec/zmbvenc.c +++ b/libavcodec/zmbvenc.c @@ -277,7 +277,7 @@ static av_cold int encode_init(AVCodecContext *avctx) int lvl = 9; for(i=1; i<256; i++) - score_tab[i]= -i * log(i/(double)(ZMBV_BLOCK*ZMBV_BLOCK)) * (256/M_LN2); + score_tab[i]= -i * log2(i/(double)(ZMBV_BLOCK*ZMBV_BLOCK)) * 256; c->avctx = avctx; |