Little fix for block sizes <16

Originally committed as revision 13095 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-05-09 10:44:12 +00:00
parent a1fe4604d4
commit def1e277b9
1 changed files with 1 additions and 1 deletions

View File

@ -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;