[FFmpeg-cvslog] lavf/tty: Reduce probe score to fix ffmetadata auto-detection.

Carl Eugen Hoyos git at videolan.org
Sat Mar 14 16:39:06 EET 2020


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Fri Mar 13 00:53:16 2020 +0100| [b601e24ab39b8bdfb4aec49b6b339dd9b34a2b5e] | committer: Carl Eugen Hoyos

lavf/tty: Reduce probe score to fix ffmetadata auto-detection.

Fixes ticket #8568.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b601e24ab39b8bdfb4aec49b6b339dd9b34a2b5e
---

 libavformat/tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 }
 



More information about the ffmpeg-cvslog mailing list