codecs: h264dec: Check bumping again after inserting current picture.
authorHe Junyan <junyan.he@intel.com>
Tue, 31 Aug 2021 09:16:05 +0000 (17:16 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 15 Sep 2021 13:20:28 +0000 (13:20 +0000)
commit162026961bff14dbf8198fb556b83a2f655f4c4b
tree149a5b22cdccc931986b516caf4da7d25b83bab0
parent28eb729b53c8fc4d5fb67994a5f3d7ac84cbce9d
codecs: h264dec: Check bumping again after inserting current picture.

In order to get the lowest latency, we can add another bumping check after
inserting the current picture into the DPB immediately. That can avoid
waiting for another decoding circle of the next frame and so the latency
is lower.

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