History

avfilter/vf_readeia608: fix check for failed av_calloc

Limin Wang committed 6 years ago

Commit 03eb96f1 parent 5b42d331 file · +2 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_readeia608.c+2−1
@@ -121,7 +121,8 @@ static int config_input(AVFilterLink *inlink) · 120 unmodified lines
121121 s->signal = av_calloc(size, sizeof(*s->signal));
122122 s->code = av_calloc(size, sizeof(*s->code));
123123 s->temp = av_calloc(size, sizeof(*s->temp));
124− if (!s->temp)
124+ if (!s->unfiltered || !s->filtered || !s->avg_filter ||
125+ !s->std_filter || !s->signal || !s->code || !s->temp)
125126 return AVERROR(ENOMEM);
126127
127128 return 0;

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