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

Should help finding less false positives.
pull/331/head
Paul B Mahol 5 years ago
parent 16968b619d
commit 94682555c6
  1. 3
      libavfilter/vf_readeia608.c

@ -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;
}
}

Loading…
Cancel
Save