v4l2slh264dec: Fix reading mode and start code type
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 9 Jun 2020 14:48:06 +0000 (10:48 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 9 Jun 2020 14:52:44 +0000 (10:52 -0400)
commit483539f45cfbf7b7cb9c880588e2a012bcf5e54b
tree63b9ff1e2074ebb7ba7250b4e37d31f9f1d96c9a
parent52a82f5b84c74d3e1b94c44d7ee8391be9512551
v4l2slh264dec: Fix reading mode and start code type

These two controls are not pointer based, so we don't need to pass any size or
pointer and need to copy the values afterward. This fixes H264 decoding
regression with Hantro and RKVDEC drivers.

Fixes 037730a787c6cdeeee5779c1834315c1ca764505

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