diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-01-06 12:42:59 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-01-06 13:02:11 +0300 |
commit | 145a84717b62e086cdb5f26649ad9f1b51ef38d0 (patch) | |
tree | 6701bae2ca20d61dd5dc8366665f28a923294815 /libavfilter/af_amix.c | |
parent | 3ebd76a9c57558e284e94da367dd23b435e6a6d0 (diff) |
lavfi: check av_strdup() return value
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_amix.c')
-rw-r--r-- | libavfilter/af_amix.c | 2 |
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); |