History

fftools/ffmpeg_filter: Don't needlessly copy string

Andreas Rheinhardt committed 5 years ago

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

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
593 }593 }
594 594
595 if (ost->apad && of->shortest) {595 if (ost->apad && of->shortest) {
596 char args[256];
597 int i;596 int i;
598 597
599 for (i=0; i<of->ctx->nb_streams; i++)598 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
601 break;600 break;
602 601
603 if (i<of->ctx->nb_streams) {602 if (i<of->ctx->nb_streams) {
604 snprintf(args, sizeof(args), "%s", ost->apad);603 AUTO_INSERT_FILTER("-apad", "apad", ost->apad);
605 AUTO_INSERT_FILTER("-apad", "apad", args);
606 }604 }
607 }605 }
608 606

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