diff options
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux_libarchive.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/demux/demux_libarchive.c b/demux/demux_libarchive.c index b95f37228c..ae2bd95599 100644 --- a/demux/demux_libarchive.c +++ b/demux/demux_libarchive.c @@ -32,7 +32,10 @@ static int cmp_filename(const void *a, const void *b) static int open_file(struct demuxer *demuxer, enum demux_check check) { - struct mp_archive *mpa = mp_archive_new(demuxer->log, demuxer->stream); + int flags = 0; + if (check <= DEMUX_CHECK_REQUEST) + flags |= MP_ARCHIVE_FLAG_UNSAFE; + struct mp_archive *mpa = mp_archive_new(demuxer->log, demuxer->stream, flags); if (!mpa) return -1; |