mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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>
This commit is contained in:
parent
68ba63ebd5
commit
603d627457
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user