Commit 03eb96f9 authored by Limin Wang's avatar Limin Wang Committed by Paul B Mahol

avfilter/vf_readeia608: fix check for failed av_calloc

Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
parent 5b42d335
......@@ -121,7 +121,8 @@ static int config_input(AVFilterLink *inlink)
s->signal = av_calloc(size, sizeof(*s->signal));
s->code = av_calloc(size, sizeof(*s->code));
s->temp = av_calloc(size, sizeof(*s->temp));
if (!s->temp)
if (!s->unfiltered || !s->filtered || !s->avg_filter ||
!s->std_filter || !s->signal || !s->code || !s->temp)
return AVERROR(ENOMEM);
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment