diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-09-30 16:45:31 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-09-30 16:45:31 +0200 |
commit | 7851e2f368d82e491cd9a82a9ff0b94652251d6d (patch) | |
tree | 9222c17ec5cec2efe063f7f4b7c4dc4b9983e654 /libavfilter | |
parent | 6e9e14e62e995bb4326038376b88de190547adde (diff) | |
download | ffmpeg-7851e2f368d82e491cd9a82a9ff0b94652251d6d.tar.gz |
avfilter/af_join: use av_asprintf()
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_join.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c index 930c9e48e7..8269045d36 100644 --- a/libavfilter/af_join.c +++ b/libavfilter/af_join.c @@ -25,6 +25,7 @@ */ #include "libavutil/avassert.h" +#include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/opt.h" @@ -185,12 +186,10 @@ static av_cold int join_init(AVFilterContext *ctx) return ret; for (i = 0; i < s->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); |