Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2014/10/23 22:26:46... | ... |
@@ -1344,6 +1344,11 @@ static int hls_read_header(AVFormatContext *s) |
1344 | 1344 |
} |
1345 | 1345 |
pls->ctx->pb = &pls->pb; |
1346 | 1346 |
pls->stream_offset = stream_offset; |
1347 |
+ |
|
1348 |
+ av_assert0(!pls->ctx->codec_whitelist && !pls->ctx->format_whitelist); |
|
1349 |
+ pls->ctx-> codec_whitelist = av_strdup(s->codec_whitelist); |
|
1350 |
+ pls->ctx->format_whitelist = av_strdup(s->format_whitelist); |
|
1351 |
+ |
|
1347 | 1352 |
ret = avformat_open_input(&pls->ctx, pls->segments[0]->url, in_fmt, NULL); |
1348 | 1353 |
if (ret < 0) |
1349 | 1354 |
goto fail; |