Commit c1677c69 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

v4l2: fix frequency conversion from Hz (fixes #10309)

parent 781ff751
......@@ -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)
......
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