From 9214855006ab4f016498d1998a6d78130e1d008a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 12 Jan 2003 12:16:36 +0000 Subject: [PATCH] average motion vector rounding like the reference says and not what the standard says Originally committed as revision 1453 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h263.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/h263.c b/libavcodec/h263.c index bc21e0cd86..64b2e18bda 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -2654,8 +2654,7 @@ static inline int get_amv(MpegEncContext *s, int n){ v+= dx; } } - sum /= 256; - sum= RSHIFT(sum<quarter_sample, a); + sum= RSHIFT(sum, a+8-s->quarter_sample); } if (sum < -len) sum= -len;