History

fftools/ffmpeg_filter: Don't needlessly copy string

Andreas Rheinhardt committed 5 years ago

Commit 47821241 parent 6b724101 file · +1 −3Browse files

Showing the changes to fftools (1 of 1 file). Show all

Unified · Split

fftools/ffmpeg_filter.c+1−3
@@ -593,7 +593,6 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter, · 592 unmodified lines
593593 }
594594
595595 if (ost->apad && of->shortest) {
596− char args[256];
597596 int i;
598597
599598 for (i=0; i<of->ctx->nb_streams; i++)
@@ -601,8 +600,7 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter, · 1 unmodified line
601600 break;
602601
603602 if (i<of->ctx->nb_streams) {
604− snprintf(args, sizeof(args), "%s", ost->apad);
605− AUTO_INSERT_FILTER("-apad", "apad", args);
603+ AUTO_INSERT_FILTER("-apad", "apad", ost->apad);
606604 }
607605 }
608606

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t