Fixes ticket #4184.
Unified · Split
| @@ -1681,6 +1681,8 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in · 1680 unmodified lines | ||
| 1681 | 1681 | |
| 1682 | 1682 | MATCH_PER_STREAM_OPT(filter_scripts, str, ost->filters_script, oc, st); |
| 1683 | 1683 | MATCH_PER_STREAM_OPT(filters, str, ost->filters, oc, st); |
| 1684 | + if (o->nb_filters > 1) | |
| 1685 | + av_log(NULL, AV_LOG_ERROR, "Only '-vf %s' read, ignoring remaining -vf options: Use ',' to separate filters\n", ost->filters); | |
| 1684 | 1686 | |
| 1685 | 1687 | if (!ost->stream_copy) { |
| 1686 | 1688 | const char *p = NULL; |
| @@ -1862,6 +1864,8 @@ static OutputStream *new_audio_stream(OptionsContext *o, AVFormatContext *oc, in · 175 unmodified lines | ||
| 1862 | 1864 | |
| 1863 | 1865 | MATCH_PER_STREAM_OPT(filter_scripts, str, ost->filters_script, oc, st); |
| 1864 | 1866 | MATCH_PER_STREAM_OPT(filters, str, ost->filters, oc, st); |
| 1867 | + if (o->nb_filters > 1) | |
| 1868 | + av_log(NULL, AV_LOG_ERROR, "Only '-af %s' read, ignoring remaining -af options: Use ',' to separate filters\n", ost->filters); | |
| 1865 | 1869 | |
| 1866 | 1870 | if (!ost->stream_copy) { |
| 1867 | 1871 | char *sample_fmt = NULL; |