# HG changeset patch # User michaelni # Date 1042373796 0 # Node ID 74dc4105e147792bf20f70d8a7eaa99e6450dacf # Parent 6129c88a6393484576733e94af5a18281793b820 average motion vector rounding like the reference says and not what the standard says diff -r 6129c88a6393 -r 74dc4105e147 h263.c --- 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<quarter_sample, a); + sum= RSHIFT(sum, a+8-s->quarter_sample); } if (sum < -len) sum= -len;