decoder: h264: detect incorrectly paired fields in frames.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jul 2014 11:48:48 +0000 (13:48 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jul 2014 12:56:26 +0000 (14:56 +0200)
commitb5f1bdd59af69ce7eac569df8f7d474c4f8060bd
tree3deb1ad4cefa100c949aa51d66043347e6f939e4
parenta3e49d6d13681e205191933fa8fe275e3e6af900
decoder: h264: detect incorrectly paired fields in frames.

When a DPB flush is required, e.g. at a natural and of stream or issued
explicitly through an IDR, try to detect any frame left in the DPB that
is interlaced but does not contain two decoded fields. In that case, mark
the picture as having a single field only.

This avoids a hang while decoding tv_cut.mkv.
gst-libs/gst/vaapi/gstvaapidecoder_h264.c