avcodec/mpeg2dec: Fix field selection for skipped macroblocks
authorNekopanda <pianoyayaninth-at-yahoo.co.jp@ffmpeg.org>
Sat, 10 Feb 2018 09:36:32 +0000 (18:36 +0900)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit66881cf2b58b8021e9e7f4271e30deeba0c6cb7f
treee06161d149d61587643074e7ab97942dafa996ea
parent838d02fcff8d08dfe138db572eaff01193f388ab
avcodec/mpeg2dec: Fix field selection for skipped macroblocks

For B field pictures, the spec says,

> The prediction shall be made from the field of the same parity as the field being predicted.

I did it.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8b154cb3e90a3e599cadf477d815a9854b7bb4e1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg12dec.c
tests/ref/fate/mpeg2-ticket186