aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-07 18:40:04 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-07 18:40:04 +0000
commitfbd97184f8b68b2074b79a1698e4d9404292f7ca (patch)
treeafa57fc2f4991f168020346b03d627538c87486f /libavfilter
parented581e65e2a4f2ed149f75a1cc38c8015f0aef4c (diff)
downloadffmpeg-fbd97184f8b68b2074b79a1698e4d9404292f7ca.tar.gz
Add missing check in link_filter_inouts(), and fix possible (yet very unlikely) crash.
Originally committed as revision 25695 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/graphparser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 538d0a6cad..94e33fa447 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -229,6 +229,8 @@ static int link_filter_inouts(AVFilterContext *filt_ctx,
pad = filt_ctx->output_count;
while (pad--) {
AVFilterInOut *currlinkn = av_mallocz(sizeof(AVFilterInOut));
+ if (!currlinkn)
+ return AVERROR(ENOMEM);
currlinkn->filter = filt_ctx;
currlinkn->pad_idx = pad;
insert_inout(curr_inputs, currlinkn);