Files
FFmpeg/tests/ref/fate
Nekopanda f4d5d7e8de avcodec/mpeg2dec: Fix motion vector rounding for chroma components
In 16x8 motion compensation, for lower 16x8 region, the input to mpeg_motion() for motion_y was "motion_y + 16", which causes wrong rounding. For 4:2:0, chroma scaling for y is dividing by two and rounding toward zero. When motion_y < 0 and motion_y + 16 > 0, the rounding direction of "motion_y" and "motion_y + 16" is different and rounding "motion_y + 16" would be incorrect.

We should input "motion_y" as is to round correctly. I add "is_16x8" flag to do that.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-02-11 12:04:47 +01:00
..
2017-06-30 03:03:08 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2017-08-30 12:13:02 +02:00
2018-02-02 12:16:56 -03:00
2017-12-08 20:02:16 +01:00
2017-08-31 02:53:11 +02:00
2017-08-03 16:36:02 -03:00
2017-01-27 17:06:42 +01:00
2017-05-25 14:30:04 +02:00