aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/split.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-01-06 09:42:59 +0000
committerMichael Niedermayer <michaelni@gmx.at>2015-01-06 18:28:35 +0100
commitbbfe0f7b084e7217800e7f5e1cb34968840173f0 (patch)
treedc360f4f446629bbba68e63d4b336fc275edea38 /libavfilter/split.c
parent27a910a8575879d08edaae9d8956ab6d1821044a (diff)
downloadffmpeg-bbfe0f7b084e7217800e7f5e1cb34968840173f0.tar.gz
lavfi: check av_strdup() return value
Signed-off-by: Paul B Mahol <onemda@gmail.com> (cherry picked from commit 145a84717b62e086cdb5f26649ad9f1b51ef38d0) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/split.c')
-rw-r--r--libavfilter/split.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/split.c b/libavfilter/split.c
index 6abd5ee2e0..7353810677 100644
--- a/libavfilter/split.c
+++ b/libavfilter/split.c
@@ -52,6 +52,8 @@ static av_cold int split_init(AVFilterContext *ctx)
snprintf(name, sizeof(name), "output%d", i);
pad.type = ctx->filter->inputs[0].type;
pad.name = av_strdup(name);
+ if (!pad.name)
+ return AVERROR(ENOMEM);
ff_insert_outpad(ctx, i, &pad);
}