Commit 94682555 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_readeia608: check if gaps between clock bits are big enough

Should help finding less false positives.
parent 16968b61
......@@ -325,7 +325,8 @@ static void extract_line(AVFilterContext *ctx, AVFrame *in, int w, int nb_line)
bit_size /= 19.f;
for (i = 1; i < 14; i++) {
if (s->code[i].size > bit_size * 1.5f) {
if (s->code[i].size > bit_size * 1.5f ||
s->code[i].size < bit_size * 0.2f) {
return;
}
}
......
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