v4l2codecs: h264: Only slice-based need SLICE_PARAMS and PRED_WEIGHTS
authorEzequiel Garcia <ezequiel@collabora.com>
Wed, 30 Sep 2020 17:22:14 +0000 (14:22 -0300)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 2 Mar 2021 22:03:34 +0000 (22:03 +0000)
commitae9411e33406ff13dd7ad8d2763ad5f537539fc5
treec31f902582072c71b1d9a5ceff0fa9ecff51abd5
parent010565eb7ff80d0c9906f46339ac7c7030c27ef8
v4l2codecs: h264: Only slice-based need SLICE_PARAMS and PRED_WEIGHTS

Frame-based decoding mode doesn't require SLICE_PARAMS and
PRED_WEIGHTS controls.

Moreover, if the driver doesn't support these two controls, trying
to set them will fail. Fix this by only setting these on
slice-based decoding mode.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1624>
sys/v4l2codecs/gstv4l2codech264dec.c