Commit 63826a0b authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_amix: make use of av_asprintf()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent ec5328aa
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment