aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-23 16:04:45 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-23 18:19:37 +0200
commitad5f861b8ce34dd5a3c643bc50a1b8c82138bbcd (patch)
tree816fd4861196b7318d708815bb7ec8b9440a2239
parent7292b0477ac8a864af9bf97b63362c40062ab805 (diff)
downloadffmpeg-ad5f861b8ce34dd5a3c643bc50a1b8c82138bbcd.tar.gz
avformat/libquvi: Forward whitelists to subdemuxer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/libquvi.c5
1 files changed, 5 insertions, 0 deletions
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;