mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
v4l2videodec: Initialise ioctl struct with zeroes before passing it to ioctl()
This commit is contained in:
parent
5b4681dfe7
commit
ab02b1db6c
1 changed files with 2 additions and 0 deletions
|
@ -840,6 +840,8 @@ gst_v4l2_video_dec_probe_caps (gchar * device, gint video_fd,
|
|||
for (n = 0;; n++) {
|
||||
GstStructure *template;
|
||||
|
||||
memset (&format, 0, sizeof (format));
|
||||
|
||||
format.index = n;
|
||||
format.type = type;
|
||||
|
||||
|
|
Loading…
Reference in a new issue