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: 47bfa71530 ("v4l2codecs: h264: Improve ABI check ")
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1726>
This commit is contained in:
Dmitry Osipenko 2022-02-14 16:18:54 +03:00 committed by GStreamer Marge Bot
parent 586dfab9bd
commit b757d12cff

View file

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