diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-12-23 19:56:05 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-12-23 19:56:05 +0100 |
commit | 94682555c6f8955319165361d77f7eb84b5f502f (patch) | |
tree | ff4bceeb002af2194d2aacdaf4a0bb646d847f46 | |
parent | 16968b619d9c0641591b6b115b28f4fbcf2037c9 (diff) | |
download | ffmpeg-94682555c6f8955319165361d77f7eb84b5f502f.tar.gz |
avfilter/vf_readeia608: check if gaps between clock bits are big enough
Should help finding less false positives.
-rw-r--r-- | libavfilter/vf_readeia608.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_readeia608.c b/libavfilter/vf_readeia608.c index c36bcf5af9..845b63663c 100644 --- a/libavfilter/vf_readeia608.c +++ b/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; } } |