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
16811681
16821682 MATCH_PER_STREAM_OPT(filter_scripts, str, ost->filters_script, oc, st);
16831683 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);
16841686
16851687 if (!ost->stream_copy) {
16861688 const char *p = NULL;
@@ -1862,6 +1864,8 @@ static OutputStream *new_audio_stream(OptionsContext *o, AVFormatContext *oc, in · 175 unmodified lines
18621864
18631865 MATCH_PER_STREAM_OPT(filter_scripts, str, ost->filters_script, oc, st);
18641866 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);
18651869
18661870 if (!ost->stream_copy) {
18671871 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