mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
avfilter/vf_readeia608: fix check for failed av_calloc
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
5b42d33571
commit
03eb96f9b7
@ -121,7 +121,8 @@ static int config_input(AVFilterLink *inlink)
|
|||||||
s->signal = av_calloc(size, sizeof(*s->signal));
|
s->signal = av_calloc(size, sizeof(*s->signal));
|
||||||
s->code = av_calloc(size, sizeof(*s->code));
|
s->code = av_calloc(size, sizeof(*s->code));
|
||||||
s->temp = av_calloc(size, sizeof(*s->temp));
|
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 AVERROR(ENOMEM);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user