diff options
-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); |