From 145a84717b62e086cdb5f26649ad9f1b51ef38d0 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 6 Jan 2015 09:42:59 +0000 Subject: lavfi: check av_strdup() return value Signed-off-by: Paul B Mahol --- libavfilter/af_join.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavfilter/af_join.c') diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c index a1717c63b9..71a454bba7 100644 --- a/libavfilter/af_join.c +++ b/libavfilter/af_join.c @@ -214,6 +214,8 @@ static av_cold int join_init(AVFilterContext *ctx) snprintf(name, sizeof(name), "input%d", i); pad.type = AVMEDIA_TYPE_AUDIO; pad.name = av_strdup(name); + if (!pad.name) + return AVERROR(ENOMEM); pad.filter_frame = filter_frame; pad.needs_fifo = 1; -- cgit v1.2.3