codecs: h264dec: Set picture to a small poc when mem_mgmt_5.
authorHe Junyan <junyan.he@intel.com>
Mon, 5 Jul 2021 15:53:25 +0000 (23:53 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 21 Jul 2021 15:23:17 +0000 (15:23 +0000)
commit23b15aa5d066d73a0691d982e764309fe8c0802a
treefe03eca40826d67e95ff2f50d2dc8bbff54d8aa8
parent7a6bc987a54dc3ddec6cbb0eac6c10cc9e8472ee
codecs: h264dec: Set picture to a small poc when mem_mgmt_5.

When current frame memory_management_control_operation equal to 5, that
means we need to drain the dpb and the current picture act as an IDR frame.
So it should have smaller poc than the later pictures to ensure the output
order.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2373>
gst-libs/gst/codecs/gsth264picture.c