diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-01-12 12:16:36 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-01-12 12:16:36 +0000 |
commit | 9214855006ab4f016498d1998a6d78130e1d008a (patch) | |
tree | ad4db4ca3b0d4f89641a59a4dd8de9fd5b9ef986 | |
parent | 2ca24d91286617f61850848273b0e8757ee5fcb9 (diff) | |
download | ffmpeg-9214855006ab4f016498d1998a6d78130e1d008a.tar.gz |
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
-rw-r--r-- | libavcodec/h263.c | 3 |
1 files changed, 1 insertions, 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<<s->quarter_sample, a); + sum= RSHIFT(sum, a+8-s->quarter_sample); } if (sum < -len) sum= -len; |