1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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

Fixes ticket #8568.
This commit is contained in:
Carl Eugen Hoyos 2020-03-13 00:53:16 +01:00
parent 8f222573e9
commit b601e24ab3

View File

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