Unified · Split
| @@ -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 | ||