diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-07 18:40:04 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-07 18:40:04 +0000 |
commit | fbd97184f8b68b2074b79a1698e4d9404292f7ca (patch) | |
tree | afa57fc2f4991f168020346b03d627538c87486f /libavfilter | |
parent | ed581e65e2a4f2ed149f75a1cc38c8015f0aef4c (diff) | |
download | ffmpeg-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.c | 2 |
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); |