mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/libquvi: Forward whitelists to subdemuxer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7292b0477a
commit
ad5f861b8c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue