From def1e277b978179c6ca20734cd68e806c18d7028 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 9 May 2008 10:44:12 +0000 Subject: Little fix for block sizes <16 Originally committed as revision 13095 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/zmbvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/zmbvenc.c') diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c index fbefa7cafc..0bf1dff192 100644 --- 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 * log2(i/256.0) * 256; + score_tab[i]= -i * log2(i/(double)(ZMBV_BLOCK*ZMBV_BLOCK)) * 256; c->avctx = avctx; -- cgit v1.2.3