diff mbox series

[FFmpeg-devel] lavf/tty: Reduce probe score and fix ffmetadata auto-detection

Message ID CAB0OVGpgXGvK5EWen1DQWS9=e43WXfW4s8JpK8CDxQ_AVkHbMQ@mail.gmail.com
State Accepted
Headers show
Series [FFmpeg-devel] lavf/tty: Reduce probe score and fix ffmetadata auto-detection
Related show

Checks

Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Carl Eugen Hoyos March 12, 2020, 11:54 p.m. UTC
Hi!

Attached patch fixes ticket #8568 for me.

Please comment, Carl Eugen

Comments

Paul B Mahol March 13, 2020, 7:42 a.m. UTC | #1
On 3/13/20, Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote:
> Hi!
>
> Attached patch fixes ticket #8568 for me.
>
> Please comment, Carl Eugen
>

whatever
Carl Eugen Hoyos March 14, 2020, 2:40 p.m. UTC | #2
Am Fr., 13. März 2020 um 00:54 Uhr schrieb Carl Eugen Hoyos
<ceffmpeg@gmail.com>:

> Attached patch fixes ticket #8568 for me.

Patch applied.

Carl Eugen
diff mbox series

Patch

From f89862eebf6814567ea8a2d0a7a7c138607dcc01 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Fri, 13 Mar 2020 00:53:16 +0100
Subject: [PATCH] lavf/tty: Reduce probe score and fix ffmetadata
 auto-detection.

Fixes ticket #8568.
---
 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);
 }
 
-- 
2.24.1