[FFmpeg-cvslog] avfilter/vf_readeia608: check if gaps between clock bits are big enough
Paul B Mahol
git at videolan.org
Mon Dec 23 21:12:02 EET 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Dec 23 19:56:05 2019 +0100| [94682555c6f8955319165361d77f7eb84b5f502f] | committer: Paul B Mahol
avfilter/vf_readeia608: check if gaps between clock bits are big enough
Should help finding less false positives.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=94682555c6f8955319165361d77f7eb84b5f502f
---
libavfilter/vf_readeia608.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;
}
}
More information about the ffmpeg-cvslog
mailing list