From 21e034a47a2b407f0896114a995fd507f0f5230f Mon Sep 17 00:00:00 2001 From: Gilles Chanteperdrix Date: Wed, 8 Apr 2015 14:38:11 +0200 Subject: [PATCH] avformat/libquvi: Fix whitelist handling Fixes null pointer dereference Signed-off-by: Michael Niedermayer --- libavformat/libquvi.c | 3 +++ 1 file changed, 3 insertions(+) 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;