diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-05-16 00:36:26 +0200 |
---|---|---|
committer | Leo Izen <leo.izen@gmail.com> | 2023-05-16 10:46:35 -0400 |
commit | 1237bf0d739a163c8308af97d7e482c64945dc65 (patch) | |
tree | 30de88f6d51a73e165690d66b2793a2816885f57 /demux | |
parent | fe4f03f42c8513ff312b1e62259438de98583fce (diff) | |
download | mpv-1237bf0d739a163c8308af97d7e482c64945dc65.tar.bz2 mpv-1237bf0d739a163c8308af97d7e482c64945dc65.tar.xz |
demux/demux_lavf: pass-through mime_type
This fixes HLS playback. After FFmpeg@954d16f check is strict as per
RFC8216 requirement and demuxer need to have this information to work
properly.
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux_lavf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index b151bd6ab7..2925bd67f9 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -472,6 +472,7 @@ static int lavf_check_file(demuxer_t *demuxer, enum demux_check check) check <= DEMUX_CHECK_REQUEST ? priv->filename : "", .buf_size = 0, .buf = av_mallocz(PROBE_BUF_SIZE + AV_INPUT_BUFFER_PADDING_SIZE), + .mime_type = lavfdopts->allow_mimetype ? mime_type : NULL, }; if (!avpd.buf) return -1; |