nvh265sldec: Sync up with d3d11h265dec implementation
authorSeungha Yang <seungha@centricular.com>
Fri, 16 Sep 2022 20:01:55 +0000 (05:01 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 16 Sep 2022 20:25:23 +0000 (20:25 +0000)
commitb6ca76eb68bd6d5372275a6f3bd38882596a1b5b
treebfe49e0eb447d3e390e2d82ec6a3b443ea460799
parentf4260ecdc57a965dee5d0f2dbfd882ab10e0d987
nvh265sldec: Sync up with d3d11h265dec implementation

Each RefPicSetStCurrBefore/RefPicSetStCurrAfter/RefPicSetLtCurr array
might have empty element (i.e., reference pictures might not be stored
sequentially). Don't error out for the empty element case,
but instead, iterates each array and fill NVDEC's reference list
as much as possible

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1441
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3039>
subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265dec.c