Browse Source

avformat/concatdec: Forward whitelists to the subdemuxers.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
5ea0753a15
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavformat/concatdec.c

+ 5
- 0
libavformat/concatdec.c 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);


Loading…
Cancel
Save