Fix erractic timecode detection when extracting LTC from video

Some music using square waves can inadvertently be interpreted as valid
LTC frame. However the encoded data is not a valid timecode, which can
lead huge A/V offsets, or other issues.
This commit is contained in:
Robin Gareus 2022-09-03 21:31:47 +02:00
parent 8af793a44d
commit 9697187037
3 changed files with 21 additions and 6 deletions

View file

@ -28,7 +28,7 @@ function dsp_run (ins, outs, n_samples)
local rv
repeat
local tc
rv, tc = ltc_reader:read (0, 0, 0, 0)
rv, tc = ltc_reader:read (0, 0, 0, 0, 0)
if rv >= 0 then
timeout = 0
self:shmem():atomic_set_int (0, 1)