History

avformat/libquvi: Fix whitelist handling

Fixes null pointer dereference

Gilles Chanteperdrix committed 11 years ago

Commit 21e034a1 parent 845ab371 file · +3 −0Browse files

Unified · Split

libavformat/libquvi.c+3−0
@@ -76,6 +76,9 @@ static int libquvi_read_header(AVFormatContext *s) · 75 unmodified lines
76 if (rc != QUVI_OK)76 if (rc != QUVI_OK)
77 goto quvi_fail;77 goto quvi_fail;
78 78
79 if (!(qc->fmtctx = avformat_alloc_context()))
80 goto quvi_fail;
81
79 if ((ret = ff_copy_whitelists(qc->fmtctx, s)) < 0)82 if ((ret = ff_copy_whitelists(qc->fmtctx, s)) < 0)
80 goto end;83 goto end;
81 84

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t