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:
parent
ed581e65e2
commit
fbd97184f8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user