[vlc-commits] stream_filter: ifo: check extension first

Francois Cartegnie git at videolan.org
Tue Feb 27 14:19:36 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 27 11:26:52 2018 +0100| [07e7a828bcf07372189272e4e65621f708f1ee86] | committer: Francois Cartegnie

stream_filter: ifo: check extension first

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=07e7a828bcf07372189272e4e65621f708f1ee86
---

 modules/demux/playlist/ifo.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/playlist/ifo.c b/modules/demux/playlist/ifo.c
index 66b909bafb..4807464e26 100644
--- a/modules/demux/playlist/ifo.c
+++ b/modules/demux/playlist/ifo.c
@@ -54,6 +54,9 @@ int Import_IFO( vlc_object_t *p_this )
 
     CHECK_FILE(p_stream);
 
+    if( !stream_HasExtension( p_stream, ".IFO" ) )
+        return VLC_EGENERIC;
+
     const char *psz_location = StreamLocation( p_stream );
     if( psz_location == NULL )
         return VLC_EGENERIC;



More information about the vlc-commits mailing list