Commit 5ea0753a authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/concatdec: Forward whitelists to the subdemuxers.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent feb9057b
...@@ -288,6 +288,11 @@ static int open_file(AVFormatContext *avf, unsigned fileno) ...@@ -288,6 +288,11 @@ static int open_file(AVFormatContext *avf, unsigned fileno)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
cat->avf->interrupt_callback = avf->interrupt_callback; cat->avf->interrupt_callback = avf->interrupt_callback;
av_assert0(!cat->avf->codec_whitelist && !cat->avf->format_whitelist);
cat->avf-> codec_whitelist = av_strdup(avf->codec_whitelist);
cat->avf->format_whitelist = av_strdup(avf->format_whitelist);
if ((ret = avformat_open_input(&cat->avf, file->url, NULL, NULL)) < 0 || if ((ret = avformat_open_input(&cat->avf, file->url, NULL, NULL)) < 0 ||
(ret = avformat_find_stream_info(cat->avf, NULL)) < 0) { (ret = avformat_find_stream_info(cat->avf, NULL)) < 0) {
av_log(avf, AV_LOG_ERROR, "Impossible to open '%s'\n", file->url); av_log(avf, AV_LOG_ERROR, "Impossible to open '%s'\n", file->url);
......
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