Browse Source

avformat/libquvi: Fix whitelist handling

Fixes null pointer dereference

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Gilles Chanteperdrix Michael Niedermayer 10 years ago
parent
commit
21e034a47a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/libquvi.c

+ 3
- 0
libavformat/libquvi.c View File

@@ -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;



Loading…
Cancel
Save