codecs: h264dec: Change the order of dpb_add and dpb_bump.
authorHe Junyan <junyan.he@intel.com>
Sun, 11 Jul 2021 16:31:54 +0000 (00:31 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 21 Jul 2021 15:23:17 +0000 (15:23 +0000)
commitb4e388744944b851872b4e8f5338ef8d3e72cd7d
tree58052fa50a93ff54d68a0848f9e0f2e28f27dba0
parentf1df120797d8cd1ab01952332eb749916ac1537a
codecs: h264dec: Change the order of dpb_add and dpb_bump.

The current behavior is different from the SPEC. We should check
and bump the DPB or drain the DPB before we insert the current
picture into it. This may cause the output picture disorder.

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