summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavfilter/vf_readeia608.c3
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;
}
}