aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-01-14 13:34:22 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-01-15 00:27:05 +0100
commit301cee61fa61c55b1c178ebfbc590872e8b033e6 (patch)
tree67bdad599266226de1de8da4c275897e6a3a3a2b
parent5d958f0955fe0e7552e7ccb8fddf9947e90039fc (diff)
downloadffmpeg-301cee61fa61c55b1c178ebfbc590872e8b033e6.tar.gz
ffmpeg_opt: Print a warning if more than one -vf/-af option was specified.
Fixes ticket #4184.
-rw-r--r--fftools/ffmpeg_opt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index a99e762dc6..53d688b764 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -1681,6 +1681,8 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in
MATCH_PER_STREAM_OPT(filter_scripts, str, ost->filters_script, oc, st);
MATCH_PER_STREAM_OPT(filters, str, ost->filters, oc, st);
+ if (o->nb_filters > 1)
+ av_log(NULL, AV_LOG_ERROR, "Only '-vf %s' read, ignoring remaining -vf options: Use ',' to separate filters\n", ost->filters);
if (!ost->stream_copy) {
const char *p = NULL;
@@ -1862,6 +1864,8 @@ static OutputStream *new_audio_stream(OptionsContext *o, AVFormatContext *oc, in
MATCH_PER_STREAM_OPT(filter_scripts, str, ost->filters_script, oc, st);
MATCH_PER_STREAM_OPT(filters, str, ost->filters, oc, st);
+ if (o->nb_filters > 1)
+ av_log(NULL, AV_LOG_ERROR, "Only '-af %s' read, ignoring remaining -af options: Use ',' to separate filters\n", ost->filters);
if (!ost->stream_copy) {
char *sample_fmt = NULL;