diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-06 07:05:00 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-10 03:53:40 +0200 |
commit | 4782124b90cf915ede2cebd871be82fc0267a135 (patch) | |
tree | b301fe164e516ac6138e814ba6665cf7c1a3568c | |
parent | 6b72410e0148ab677aca2f7dcbe52d706d632aa0 (diff) | |
download | ffmpeg-4782124b90cf915ede2cebd871be82fc0267a135.tar.gz |
fftools/ffmpeg_filter: Don't needlessly copy string
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | fftools/ffmpeg_filter.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index a4b4638abb..400f5a4188 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -593,7 +593,6 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter, } if (ost->apad && of->shortest) { - char args[256]; int i; for (i=0; i<of->ctx->nb_streams; i++) @@ -601,8 +600,7 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter, break; if (i<of->ctx->nb_streams) { - snprintf(args, sizeof(args), "%s", ost->apad); - AUTO_INSERT_FILTER("-apad", "apad", args); + AUTO_INSERT_FILTER("-apad", "apad", ost->apad); } } |