History

ffmpeg_opt: Print a warning if more than one -vf/-af option was specified.

Fixes ticket #4184.

Carl Eugen Hoyos committed 7 years ago

Commit 301cee61 parent 5d958f01 file · +4 −0Browse files

Unified · Split

fftools/ffmpeg_opt.c+4−0
@@ -1681,6 +1681,8 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in · 1680 unmodified lines
1681 1681
1682 MATCH_PER_STREAM_OPT(filter_scripts, str, ost->filters_script, oc, st);1682 MATCH_PER_STREAM_OPT(filter_scripts, str, ost->filters_script, oc, st);
1683 MATCH_PER_STREAM_OPT(filters, str, ost->filters, oc, st);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 if (!ost->stream_copy) {1687 if (!ost->stream_copy) {
1686 const char *p = NULL;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 MATCH_PER_STREAM_OPT(filter_scripts, str, ost->filters_script, oc, st);1865 MATCH_PER_STREAM_OPT(filter_scripts, str, ost->filters_script, oc, st);
1864 MATCH_PER_STREAM_OPT(filters, str, ost->filters, oc, st);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 if (!ost->stream_copy) {1870 if (!ost->stream_copy) {
1867 char *sample_fmt = NULL;1871 char *sample_fmt = NULL;

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