summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-01-04 17:15:09 +0100
committerwm4 <wm4@nowhere>2020-01-04 17:15:09 +0100
commit657ce1b15c2e6dca0ed1ea1b67ffa123843eca5b (patch)
treedd3420a4ba68e643a218726eed240281bf9ae1ba /stream
parent99700bc52c1317716fcbaeaaf01baad121837aa4 (diff)
downloadmpv-657ce1b15c2e6dca0ed1ea1b67ffa123843eca5b.tar.bz2
mpv-657ce1b15c2e6dca0ed1ea1b67ffa123843eca5b.tar.xz
stream_libarchive: enable rar5 support
We whitelist formats (and not all of them). RAR v5 is a separated format entry for inexplicable reasons. (It's a separate implementation, but who really wants to support only either of the rar formats?) I'm not sure if it was libarchive 3.3.3. Their git history is absolutely chaotic. These people do not know how to use git. I couldn't be bothered to dig deeper.
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_libarchive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream_libarchive.c b/stream/stream_libarchive.c
index 76b47e1633..7ae5a8be38 100644
--- a/stream/stream_libarchive.c
+++ b/stream/stream_libarchive.c
@@ -277,6 +277,7 @@ struct mp_archive *mp_archive_new(struct mp_log *log, struct stream *src,
archive_read_support_format_7zip(mpa->arch);
archive_read_support_format_iso9660(mpa->arch);
archive_read_support_format_rar(mpa->arch);
+ archive_read_support_format_rar5(mpa->arch);
archive_read_support_format_zip(mpa->arch);
archive_read_support_filter_bzip2(mpa->arch);
archive_read_support_filter_gzip(mpa->arch);