[vlc-commits] v4l2: Fix wrong parameter to sizeof.
Rémi Duraffort
git at videolan.org
Wed Aug 29 19:06:12 CEST 2012
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Jul 31 11:08:13 2012 +0200| [38bf881c029db5cefe5eb2480a3ce9d0bcca3718] | committer: Rémi Duraffort
v4l2: Fix wrong parameter to sizeof.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38bf881c029db5cefe5eb2480a3ce9d0bcca3718
---
modules/access/v4l2/video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/v4l2/video.c b/modules/access/v4l2/video.c
index 56b8b1a..b17765f 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -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 */
More information about the vlc-commits
mailing list