avformat/hls: forward whitelists to mpegts demuxer
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 23 Oct 2014 13:26:46 +0000 (15:26 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 23 Oct 2014 13:26:46 +0000 (15:26 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/hls.c

index e7bbdfda0ae63f13652b5644fd1d038c7ac08510..1dd19d659fdaa682ad56a3e6811fd5e238d09ce3 100644 (file)
@@ -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;