Commit fbd97184 authored by Stefano Sabatini's avatar Stefano Sabatini

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
parent ed581e65
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment