mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_readeia608: check if gaps between clock bits are big enough
Should help finding less false positives.
This commit is contained in:
parent
16968b619d
commit
94682555c6
|
@ -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…
Reference in New Issue