[FFmpeg-devel] [PATCH 1/5] avformat/tty: Remove .txt from the extensions as it more likely is not a multimedia related file

Michael Niedermayer michael at niedermayer.cc
Sat May 12 19:33:25 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/tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/tty.c b/libavformat/tty.c
index 8d48f2c45c..8067dd1908 100644
--- a/libavformat/tty.c
+++ b/libavformat/tty.c
@@ -155,6 +155,6 @@ AVInputFormat ff_tty_demuxer = {
     .priv_data_size = sizeof(TtyDemuxContext),
     .read_header    = read_header,
     .read_packet    = read_packet,
-    .extensions     = "ans,art,asc,diz,ice,nfo,txt,vt",
+    .extensions     = "ans,art,asc,diz,ice,nfo,vt",
     .priv_class     = &tty_demuxer_class,
 };
-- 
2.17.0



More information about the ffmpeg-devel mailing list