v4l2codecs: h264: Correct scaling matrix ABI check
authorDmitry Osipenko <dmitry.osipenko@collabora.com>
Mon, 14 Feb 2022 13:18:54 +0000 (16:18 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 16 Feb 2022 13:16:17 +0000 (13:16 +0000)
Scaling matrix V4L UAPI control not presents on NVIDIA Tegra, the default
matrix should be used in this case. Mark scaling matrix presence optional.

Fixes: 47bfa71530c ("v4l2codecs: h264: Improve ABI check ")
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1726>

subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c

index cf0bee2..f84981b 100644 (file)
@@ -140,6 +140,7 @@ gst_v4l2_decoder_h264_api_check (GstV4l2Decoder * decoder)
     }, {
       SET_ID (V4L2_CID_STATELESS_H264_SCALING_MATRIX),
       .size = sizeof(struct v4l2_ctrl_h264_scaling_matrix),
+      .optional = TRUE,
     }, {
       SET_ID (V4L2_CID_STATELESS_H264_DECODE_PARAMS),
       .size = sizeof(struct v4l2_ctrl_h264_decode_params),