changeset 2985:7de97d3ac7ef libavcodec

slightly better mv_penalty table
author michael
date Sat, 24 Dec 2005 03:12:07 +0000
parents fedb0854bd07
children 83934bcab3cc
files h263.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Fri Dec 23 19:05:48 2005 +0000
+++ b/h263.c	Sat Dec 24 03:12:07 2005 +0000
@@ -1763,7 +1763,7 @@
                 if(code<33){
                     len= mvtab[code][1] + 1 + bit_size;
                 }else{
-                    len= mvtab[32][1] + 2 + bit_size;
+                    len= mvtab[32][1] + av_log2(code>>5) + 2 + bit_size;
                 }
             }