avformat/concatdec: Forward whitelists to the subdemuxers.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-10-23 16:13:05 +02:00
parent feb9057b83
commit 5ea0753a15
1 changed files with 5 additions and 0 deletions

View File

@ -288,6 +288,11 @@ static int open_file(AVFormatContext *avf, unsigned fileno)
return AVERROR(ENOMEM);
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 ||
(ret = avformat_find_stream_info(cat->avf, NULL)) < 0) {
av_log(avf, AV_LOG_ERROR, "Impossible to open '%s'\n", file->url);