libde265dec: Only decode the main profile
authorHe Junyan <junyan.he@intel.com>
Sat, 28 Oct 2023 14:55:04 +0000 (22:55 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 4 Nov 2023 18:04:56 +0000 (18:04 +0000)
commit8defcf9b72a4cdd03b94747135038a50704ec918
treec3e3e4d867152ab28b8de2036b1fb22daeb3be08
parenta0755e5d74a919251f704f1dcb3fc22ab989b362
libde265dec: Only decode the main profile

The src caps of the libde265 is now fixed to I420, and so if the
stream is other format, such as 4:4:4 or 10 bits format, the pipeline
will crash because the dowstream element accesses the video buffer as
I420 format.
We now restrain the input caps to "main" profile, which only contains
4:2:0 8 bits stream.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5596>
subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json
subprojects/gst-plugins-bad/ext/libde265/libde265-dec.c