Commit 24cd4e50 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/hls: forward whitelists to mpegts demuxer

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2de9c5ed
......@@ -1344,6 +1344,11 @@ static int hls_read_header(AVFormatContext *s)
}
pls->ctx->pb = &pls->pb;
pls->stream_offset = stream_offset;
av_assert0(!pls->ctx->codec_whitelist && !pls->ctx->format_whitelist);
pls->ctx-> codec_whitelist = av_strdup(s->codec_whitelist);
pls->ctx->format_whitelist = av_strdup(s->format_whitelist);
ret = avformat_open_input(&pls->ctx, pls->segments[0]->url, in_fmt, NULL);
if (ret < 0)
goto fail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment