[FFmpeg-devel] [PATCH 6/9] Add missing check in link_filter_inouts(), and fix possible (yet very unlikely) crash.
Stefano Sabatini
stefano.sabatini-lala
Fri Nov 5 18:20:30 CET 2010
---
libavfilter/graphparser.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 9539d94..a19e1d0 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -233,6 +233,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);
--
1.7.1
More information about the ffmpeg-devel
mailing list