From 24cd4e5071a710e3bdfd24efaf706e17cfec5b2c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 23 Oct 2014 15:26:46 +0200 Subject: avformat/hls: forward whitelists to mpegts demuxer Signed-off-by: Michael Niedermayer --- libavformat/hls.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavformat/hls.c') diff --git a/libavformat/hls.c b/libavformat/hls.c index e7bbdfda0a..1dd19d659f 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -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; -- cgit v1.2.3