summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/libquvi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/libquvi.c b/libavformat/libquvi.c
index 0a593cc9cf..7c5f7a29b7 100644
--- a/libavformat/libquvi.c
+++ b/libavformat/libquvi.c
@@ -76,6 +76,9 @@ static int libquvi_read_header(AVFormatContext *s)
if (rc != QUVI_OK)
goto quvi_fail;
+ if (!(qc->fmtctx = avformat_alloc_context()))
+ goto quvi_fail;
+
if ((ret = ff_copy_whitelists(qc->fmtctx, s)) < 0)
goto end;