vah264dec: Fix for long term reference picture signalling
authorSeungha Yang <seungha@centricular.com>
Sun, 15 Nov 2020 19:38:28 +0000 (04:38 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 16 Nov 2020 15:06:33 +0000 (15:06 +0000)
commitd3d2af6c84446cffcd041f76baa8781b1a560eca
tree09188c1be12001883b38b38eca925e2875b2f939
parentfec686145e71c1f110c84894a4ee1d21fbaeedf4
vah264dec: Fix for long term reference picture signalling

Allocate a GArray which is used to fill
VAPictureParameterBufferH264.ReferenceFrames (called per frame),
instead of alloc/free per frame.
Also this commit is to fix the condition where long-term reference
picture is needed for VAPictureParameterBufferH264.ReferenceFrames
entry.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1813>
sys/va/gstvah264dec.c