avformat/libquvi: Fix whitelist handling
Fixes null pointer dereference Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
845ab37b05
commit
21e034a47a
@@ -76,6 +76,9 @@ static int libquvi_read_header(AVFormatContext *s)
|
|||||||
if (rc != QUVI_OK)
|
if (rc != QUVI_OK)
|
||||||
goto quvi_fail;
|
goto quvi_fail;
|
||||||
|
|
||||||
|
if (!(qc->fmtctx = avformat_alloc_context()))
|
||||||
|
goto quvi_fail;
|
||||||
|
|
||||||
if ((ret = ff_copy_whitelists(qc->fmtctx, s)) < 0)
|
if ((ret = ff_copy_whitelists(qc->fmtctx, s)) < 0)
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user