[vlc-commits] stream_filter: ifo: check extension first
Francois Cartegnie
git at videolan.org
Tue Feb 27 15:10:42 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 27 11:26:52 2018 +0100| [a970f80e4687a414e1de4488d429b7e3c4a1a720] | committer: Francois Cartegnie
stream_filter: ifo: check extension first
(cherry picked from commit 07e7a828bcf07372189272e4e65621f708f1ee86)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a970f80e4687a414e1de4488d429b7e3c4a1a720
---
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 dacb7751a1..0b40457f42 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