[FFmpeg-devel] [PATCH 2/5] avformat/bintext: Reduce detection for random .bin files as it more likely is not a multimedia related file

Michael Niedermayer michael at niedermayer.cc
Sat May 12 19:33:26 EEST 2018


Iam not sure if this is a good idea or not but it may make some
attacks harder. So throwing this out for discussions ...

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavformat/bintext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/bintext.c b/libavformat/bintext.c
index f1c0b3e892..0b499d9555 100644
--- a/libavformat/bintext.c
+++ b/libavformat/bintext.c
@@ -163,7 +163,7 @@ static int bin_probe(AVProbeData *p)
 
         if (par.width * par.height * 2 / (8*16) == p->buf_size)
             return AVPROBE_SCORE_MAX / 2;
-        return 1;
+        return 0;
     }
 
     if (sauce)
-- 
2.17.0



More information about the ffmpeg-devel mailing list