aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_amix.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-09 17:19:10 +0100
commitc7a2ac6b6bd5e3f4d11f06caaeff064c263ad829 (patch)
tree509fa8215ee5f8815dc92058172cfa7434c6815d /libavfilter/af_amix.c
parent0ce35b8ce8b9e06a4dedc62b4fe10261db67f0a3 (diff)
downloadffmpeg-c7a2ac6b6bd5e3f4d11f06caaeff064c263ad829.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/af_amix.c')
-rw-r--r--libavfilter/af_amix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
index e40969f70c..fd9d13556f 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -496,6 +496,8 @@ static av_cold int 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;
ff_insert_inpad(ctx, i, &pad);