h264decoder: Fix DPB bumping process
authorSeungha Yang <seungha@centricular.com>
Fri, 17 Mar 2023 14:28:58 +0000 (23:28 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 18 Mar 2023 10:19:05 +0000 (10:19 +0000)
commit3cc37d91dfa9d6b38bcf13bfa68480a2d4c749af
treedac5cba94f0fae35ce999638c7c5e126fabaf575
parent611fc0083390d579a0f88d9b85b44e7524e53b20
h264decoder: Fix DPB bumping process

As per spec C.4.5.3 "Bumping", if bumping is needed but DPB holds
no "output needed" picture, then a picture that has the smallest
POC should be considered first for output

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