d3d11h264dec: Fix for MbaffFrameFlag and FrameNumList
authorSeungha Yang <seungha@centricular.com>
Sun, 8 Nov 2020 10:08:25 +0000 (19:08 +0900)
committerSeungha Yang <seungha@centricular.com>
Sun, 8 Nov 2020 18:07:06 +0000 (03:07 +0900)
commit0551d68bbb3266b1a6440429d92c5e22fd054e36
tree79576ddff6ab7197d4958ce838448025ddba3748
parent81151145b2db3271193ecdc53b3214da8d0b07b9
d3d11h264dec: Fix for MbaffFrameFlag and FrameNumList

As per spec 7.4.3 Slice header semantics, the flag value is derived as
MbaffFrameFlag = (mb_adaptive_frame_field_flag && !field_pic_flag)
and DXVA uses the value.
Regarding FrameNumList, in case of long-term ref, FrameNumList[i]
value should be long_term_frame_idx not long_term_pic_num.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1780>
sys/d3d11/gstd3d11h264dec.c