1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avfilter/af_amix: make use of av_asprintf()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-11-24 17:09:48 +01:00
parent ec5328aa6f
commit 63826a0b82

View File

@ -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);