[FFmpeg-cvslog] r13095 - trunk/libavcodec/zmbvenc.c

michael subversion
Fri May 9 12:44:14 CEST 2008


Author: michael
Date: Fri May  9 12:44:12 2008
New Revision: 13095

Log:
Little fix for block sizes <16


Modified:
   trunk/libavcodec/zmbvenc.c

Modified: trunk/libavcodec/zmbvenc.c
==============================================================================
--- trunk/libavcodec/zmbvenc.c	(original)
+++ trunk/libavcodec/zmbvenc.c	Fri May  9 12:44:12 2008
@@ -246,7 +246,7 @@ static av_cold int encode_init(AVCodecCo
     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;
 




More information about the ffmpeg-cvslog mailing list