summaryrefslogtreecommitdiffstats
path: root/stream/stream_libarchive.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-17 23:59:44 +0200
committerwm4 <wm4@nowhere>2015-08-17 23:59:55 +0200
commitbf5eac8dd3f142acd0d506407f1ae853ada3c5bc (patch)
treea19ee90daa0d1ca469455bd8dba9d6d6a336e020 /stream/stream_libarchive.h
parent41d7989800aef7b52affdddf0a5f539fb2a1d562 (diff)
downloadmpv-bf5eac8dd3f142acd0d506407f1ae853ada3c5bc.tar.bz2
mpv-bf5eac8dd3f142acd0d506407f1ae853ada3c5bc.tar.xz
demux_libarchive: open flat compressed files
Things like .gz etc., which have no real file header. A mixed bag, because it e.g. tends to misdetect mp3 files as compressed files or something (of course it has no mp3 support - I don't know as what it detects them). But requested by someone (or maybe not, I'm not sure how to interpret that).
Diffstat (limited to 'stream/stream_libarchive.h')
-rw-r--r--stream/stream_libarchive.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/stream/stream_libarchive.h b/stream/stream_libarchive.h
index 5d10eb33c5..f69faade72 100644
--- a/stream/stream_libarchive.h
+++ b/stream/stream_libarchive.h
@@ -7,4 +7,7 @@ struct mp_archive {
};
void mp_archive_free(struct mp_archive *mpa);
-struct mp_archive *mp_archive_new(struct mp_log *log, struct stream *src);
+
+#define MP_ARCHIVE_FLAG_UNSAFE 1
+struct mp_archive *mp_archive_new(struct mp_log *log, struct stream *src,
+ int flags);