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
1 changed files with 1 additions and 2 deletions

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;