summaryrefslogtreecommitdiffstats
path: root/stream/stream_libarchive.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-01-04 19:53:57 +0100
committerwm4 <wm4@nowhere>2020-01-04 19:56:09 +0100
commit1b283f6b60cce278aeb0c4fb675faac493546ab6 (patch)
tree8ff7a048c049f463e59d8452a6a75a049315412d /stream/stream_libarchive.h
parent4231ce6f5f6976c65a22853b77103cf4243e5f5f (diff)
downloadmpv-1b283f6b60cce278aeb0c4fb675faac493546ab6.tar.bz2
mpv-1b283f6b60cce278aeb0c4fb675faac493546ab6.tar.xz
libarchive: some shitty hack to make opening slightly faster
See manpage additions. The libarchive behavior mentioned in the last paragraph there is technically unrelated, but makes this new option mostly pointless. See: #7182
Diffstat (limited to 'stream/stream_libarchive.h')
-rw-r--r--stream/stream_libarchive.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/stream_libarchive.h b/stream/stream_libarchive.h
index bb5dee432b..f9e05fcbee 100644
--- a/stream/stream_libarchive.h
+++ b/stream/stream_libarchive.h
@@ -24,7 +24,8 @@ struct mp_archive {
void mp_archive_free(struct mp_archive *mpa);
-#define MP_ARCHIVE_FLAG_UNSAFE 1
+#define MP_ARCHIVE_FLAG_UNSAFE (1 << 0)
+#define MP_ARCHIVE_FLAG_NO_RAR_VOLUMES (1 << 1)
struct mp_archive *mp_archive_new(struct mp_log *log, struct stream *src,
int flags, int max_volumes);