codecs: av1dec: Fix to output frame with highest spatial layer
authorMengkejiergeli Ba <mengkejiergeli.ba@intel.com>
Fri, 20 Aug 2021 05:28:51 +0000 (13:28 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 27 Aug 2021 15:27:31 +0000 (15:27 +0000)
commit702e69e8417822e1cfefc8e2f6515c358ecb7bd4
treebdda658dc46d052f57adb37549393ac7ce664633
parentfd1e75900db48fc008899c5712a39ca16a0681b0
codecs: av1dec: Fix to output frame with highest spatial layer

During the output process, if there are multiple frames in a TU (i.e. multi-spatial
layers case), only one frame with the highest spatial layer id should be selected
according to av1 spec. The highest spatial layer id is obtained from idc value of
the operating point.

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