codecs: h264dec: consider the last field when add picture to DPB.
authorHe Junyan <junyan.he@intel.com>
Tue, 27 Jul 2021 04:16:13 +0000 (12:16 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 28 Jul 2021 10:54:21 +0000 (10:54 +0000)
commitf95aa0a3748d12fbcad45bf04eca3009ec392065
tree24f3308cc9b5461046df4d409bf076ddd09de3fa
parent055ded53e9f1087146582a95ef52d9e140653602
codecs: h264dec: consider the last field when add picture to DPB.

There are cases that the first field of the last picture is not a
ref but the second field is a ref. We need to add both of them
because the bumping always needs a complete frame in the DPB.

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