diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2019-12-23 12:55:58 +0800 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-12-23 10:26:36 +0100 |
commit | 03eb96f9b7bfa2d2c1a4c9f30dff9fd364157e2b (patch) | |
tree | d6609d84a005c2438d86b6291996218d03439e26 /libavfilter/vf_readeia608.c | |
parent | 5b42d3357120a338e506acbd2a0081a0702aa166 (diff) | |
download | ffmpeg-03eb96f9b7bfa2d2c1a4c9f30dff9fd364157e2b.tar.gz |
avfilter/vf_readeia608: fix check for failed av_calloc
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavfilter/vf_readeia608.c')
-rw-r--r-- | libavfilter/vf_readeia608.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_readeia608.c b/libavfilter/vf_readeia608.c index ff096189a9..43c57268fa 100644 --- a/libavfilter/vf_readeia608.c +++ b/libavfilter/vf_readeia608.c @@ -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; |