mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
Block a user