1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Stefano Sabatini 2010-11-07 18:40:04 +00:00
parent ed581e65e2
commit fbd97184f8

View File

@ -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);