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.
This commit is contained in:
Kacper Michajłow 2023-05-16 00:36:26 +02:00 committed by Leo Izen
parent fe4f03f42c
commit 1237bf0d73
No known key found for this signature in database
GPG Key ID: 5A71C331FD2FA19A
1 changed files with 1 additions and 0 deletions

View File

@ -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;