avfilter/vf_readeia608: fix check for failed av_calloc

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2019-12-23 12:55:58 +08:00 committed by Paul B Mahol
parent 5b42d33571
commit 03eb96f9b7

View File

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