Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-11-24 19:09:48 +0300
committerPaul B Mahol <onemda@gmail.com>2017-11-24 19:09:48 +0300
commit63826a0b8288c464ef665bb140451f229cfae518 (patch)
tree1f61dfba4dbce799612b77176845cea8e6d9d4e3 /libavfilter/af_amix.c
parentec5328aa6f3c1650155dd2a257167f4130abb800 (diff)
avfilter/af_amix: make use of av_asprintf()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_amix.c')
-rw-r--r--libavfilter/af_amix.c4
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);