summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tty.c b/libavformat/tty.c
index 56438d5f1c..aed5c888c3 100644
--- a/libavformat/tty.c
+++ b/libavformat/tty.c
@@ -65,7 +65,7 @@ static int read_probe(const AVProbeData *p)
for (int i = 8; i < p->buf_size; i++)
cnt += !!isansicode(p->buf[i]);
- return (cnt * 100LL / p->buf_size) * (cnt > 400) *
+ return (cnt * 99LL / p->buf_size) * (cnt > 400) *
!!av_match_ext(p->filename, tty_extensions);
}