You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
fftools/ffmpeg_filter: Don't needlessly copy string
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -593,7 +593,6 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ost->apad && of->shortest) {
|
if (ost->apad && of->shortest) {
|
||||||
char args[256];
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i=0; i<of->ctx->nb_streams; 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;
|
break;
|
||||||
|
|
||||||
if (i<of->ctx->nb_streams) {
|
if (i<of->ctx->nb_streams) {
|
||||||
snprintf(args, sizeof(args), "%s", ost->apad);
|
AUTO_INSERT_FILTER("-apad", "apad", ost->apad);
|
||||||
AUTO_INSERT_FILTER("-apad", "apad", args);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user