Commit 38bf881c authored by Rémi Duraffort's avatar Rémi Duraffort

v4l2: Fix wrong parameter to sizeof.

parent ea87467e
......@@ -497,7 +497,7 @@ int SetupFormat (vlc_object_t *obj, int fd, uint32_t fourcc,
if (v4l2_ioctl (fd, VIDIOC_G_PARM, parm) < 0)
{
msg_Err (obj, "cannot get streaming parameters: %m");
memset (parm, 0, sizeof (parm));
memset (parm, 0, sizeof (*parm));
parm->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
}
parm->parm.capture.capturemode = 0; /* normal video mode */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment