changeset 6762:99966715fe75 libavcodec

Little fix for block sizes <16
author michael
date Fri, 09 May 2008 10:44:12 +0000
parents ccf2383d2974
children f7cbb7733146
files zmbvenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/zmbvenc.c	Fri May 09 10:18:58 2008 +0000
+++ b/zmbvenc.c	Fri May 09 10:44:12 2008 +0000
@@ -246,7 +246,7 @@
     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;