changeset 999:74dc4105e147 libavcodec

average motion vector rounding like the reference says and not what the standard says
author michaelni
date Sun, 12 Jan 2003 12:16:36 +0000
parents 6129c88a6393
children 3e1f39583bee
files h263.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Sun Jan 12 00:48:29 2003 +0000
+++ b/h263.c	Sun Jan 12 12:16:36 2003 +0000
@@ -2654,8 +2654,7 @@
                 v+= dx;
             }
         }
-        sum /= 256;
-        sum= RSHIFT(sum<<s->quarter_sample, a);
+        sum= RSHIFT(sum, a+8-s->quarter_sample);
     }
 
     if      (sum < -len) sum= -len;