1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-07 10:04:15 +02:00

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
This commit is contained in:
Michael Niedermayer 2003-01-12 12:16:36 +00:00
parent 2ca24d9128
commit 9214855006

View File

@ -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;