Commit ad5f861b authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/libquvi: Forward whitelists to subdemuxer

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7292b047
......@@ -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;
......
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