mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
bf5eac8dd3
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).
14 lines
313 B
C
14 lines
313 B
C
struct mp_log;
|
|
|
|
struct mp_archive {
|
|
struct archive *arch;
|
|
struct stream *src;
|
|
char buffer[4096];
|
|
};
|
|
|
|
void mp_archive_free(struct mp_archive *mpa);
|
|
|
|
#define MP_ARCHIVE_FLAG_UNSAFE 1
|
|
struct mp_archive *mp_archive_new(struct mp_log *log, struct stream *src,
|
|
int flags);
|