From ad5f861b8ce34dd5a3c643bc50a1b8c82138bbcd Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 23 Oct 2014 16:04:45 +0200 Subject: [PATCH] avformat/libquvi: Forward whitelists to subdemuxer Signed-off-by: Michael Niedermayer --- libavformat/libquvi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavformat/libquvi.c b/libavformat/libquvi.c index ca71f9fd8c..633ff0b470 100644 --- a/libavformat/libquvi.c +++ b/libavformat/libquvi.c @@ -22,6 +22,7 @@ #include "libavformat/avformat.h" #include "libavformat/internal.h" +#include "libavutil/avassert.h" #include "libavutil/opt.h" typedef struct { @@ -75,6 +76,10 @@ static int libquvi_read_header(AVFormatContext *s) if (rc != QUVI_OK) goto quvi_fail; + av_assert0(!qc->fmtctx->codec_whitelist && !qc->fmtctx->format_whitelist); + qc->fmtctx-> codec_whitelist = av_strdup(s->codec_whitelist); + qc->fmtctx->format_whitelist = av_strdup(s->format_whitelist); + ret = avformat_open_input(&qc->fmtctx, media_url, NULL, NULL); if (ret < 0) goto end;