Commit 13d82d0e authored by michaelni's avatar michaelni

average motion vector rounding like the reference says and not what the standard says


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1453 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent df065f1a
......@@ -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