diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-09 10:44:12 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-09 10:44:12 +0000 |
commit | def1e277b978179c6ca20734cd68e806c18d7028 (patch) | |
tree | 9995960bc391edd49ad01ed659f6f5824fff9c14 | |
parent | a1fe4604d43ef5930a886e309e61d22a574230f8 (diff) | |
download | ffmpeg-def1e277b978179c6ca20734cd68e806c18d7028.tar.gz |
Little fix for block sizes <16
Originally committed as revision 13095 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/zmbvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |