codecs: h264decoder: Don't try to construct RefPicList0 and RefPicList1 if not required
authorSeungha Yang <seungha@centricular.com>
Mon, 16 Nov 2020 18:11:46 +0000 (03:11 +0900)
committerSeungha Yang <seungha@centricular.com>
Tue, 17 Nov 2020 09:29:54 +0000 (18:29 +0900)
commit11509fded16c93e64c20c2fd6fe44f8100c56081
tree5f958c18f6e77e1a3d4b6273f47026721c438c6d
parent1794a44577053aa6943d086cba81f8d1d39059f9
codecs: h264decoder: Don't try to construct RefPicList0 and RefPicList1 if not required

We were trying to construct reference picture list even for
I slice before this commit. Reference list is required only for
P, SP and B slices. Also, if all existing reference pictures
are gap pictures, we don't need to construct lists.

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