mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
2ca24d9128
commit
9214855006
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue