diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-11-24 17:09:48 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-11-24 17:09:48 +0100 |
commit | 63826a0b8288c464ef665bb140451f229cfae518 (patch) | |
tree | 1f61dfba4dbce799612b77176845cea8e6d9d4e3 | |
parent | ec5328aa6f3c1650155dd2a257167f4130abb800 (diff) | |
download | ffmpeg-63826a0b8288c464ef665bb140451f229cfae518.tar.gz |
avfilter/af_amix: make use of av_asprintf()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/af_amix.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c index 09848e5d91..ec764375c0 100644 --- a/libavfilter/af_amix.c +++ b/libavfilter/af_amix.c @@ -490,12 +490,10 @@ static av_cold int init(AVFilterContext *ctx) int i, ret; for (i = 0; i < s->nb_inputs; i++) { - char name[32]; AVFilterPad pad = { 0 }; - snprintf(name, sizeof(name), "input%d", i); pad.type = AVMEDIA_TYPE_AUDIO; - pad.name = av_strdup(name); + pad.name = av_asprintf("input%d", i); if (!pad.name) return AVERROR(ENOMEM); |