From b757d12cffad8a54b011108a1da263433eeccdb6 Mon Sep 17 00:00:00 2001 From: Dmitry Osipenko Date: Mon, 14 Feb 2022 16:18:54 +0300 Subject: [PATCH] v4l2codecs: h264: Correct scaling matrix ABI check 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: --- subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c index cf0bee248c..f84981b854 100644 --- a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c +++ b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c @@ -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),