[vlc-commits] v4l2: fix frequency conversion from Hz (fixes #10309)
Rémi Denis-Courmont
git at videolan.org
Sun Jan 5 14:52:13 CET 2014
vlc/vlc-2.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 5 15:51:09 2014 +0200| [88dd7b2bbdade1fbd3fc1a6e19f2ae7be8dd0ed2] | committer: Rémi Denis-Courmont
v4l2: fix frequency conversion from Hz (fixes #10309)
(cherry picked from commit c1677c6920a0a2bee3300faafe9bd068825df16a)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=88dd7b2bbdade1fbd3fc1a6e19f2ae7be8dd0ed2
---
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 303b52d..bf795ed 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -193,7 +193,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