Commit 92148550 authored by Michael Niedermayer's avatar Michael Niedermayer

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
parent 2ca24d91
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment