[vlc-commits] v4l2: fix frequency conversion from Hz (fixes #10309)
Rémi Denis-Courmont
git at videolan.org
Sun Jan 5 14:51:45 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 5 15:51:09 2014 +0200| [c1677c6920a0a2bee3300faafe9bd068825df16a] | committer: Rémi Denis-Courmont
v4l2: fix frequency conversion from Hz (fixes #10309)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c1677c6920a0a2bee3300faafe9bd068825df16a
---
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 a1ff15f..c0b24fd 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -198,7 +198,7 @@ int SetupTuner (vlc_object_t *obj, int fd, uint32_t idx)
struct v4l2_frequency frequency = {
.tuner = idx,
.type = tuner.type,
- .frequency = freq * 125 / 2
+ .frequency = freq * 2 / 125,
};
if (v4l2_ioctl (fd, VIDIOC_S_FREQUENCY, &frequency) < 0)
More information about the vlc-commits
mailing list