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>
Sun, 11 Feb 2018 01:16:40 +0000 (02:16 +0100)
commit8b154cb3e90a3e599cadf477d815a9854b7bb4e1
treec19f2fc49c4e249226a05ea1c33f530583740c91
parent063be4fe2cc631315fac028b5e5642e451304807
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>
libavcodec/mpeg12dec.c
tests/ref/fate/mpeg2-ticket186