stream_libarchive: disable tar support

Unfortunately, libarchive detects a stream of 0s as tar, as demonstrated
by "mpv /dev/zero". This is inconvenient in some cases.

One example is the .cue demuxer trying to open a raw audio .bin file,
which it allows only if probing fails (as .bin is raw and normally will
not look like any real file format). Although this use-case is
worthless.
This commit is contained in:
wm4 2020-02-02 17:05:14 +01:00
parent 19e5155147
commit 13624b5c7a
1 changed files with 0 additions and 5 deletions

View File

@ -334,11 +334,6 @@ struct mp_archive *mp_archive_new(struct mp_log *log, struct stream *src,
archive_read_support_filter_xz(mpa->arch);
archive_read_support_format_zip_streamable(mpa->arch);
if (probe_all) {
archive_read_support_format_gnutar(mpa->arch);
archive_read_support_format_tar(mpa->arch);
}
// This zip reader is normally preferable. However, it seeks to the end
// of the file, which may be annoying (HTTP reconnect, volume skipping),
// so use it only as last resort, or if it's relatively likely that it's