aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-06-28 20:26:13 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-06-28 21:40:43 +0200
commit2c793b8501fcf7fed579a756c8b95d8bd1ce61b2 (patch)
tree110bddd818ee03fb9e97173e7291c660f17593f1
parentfcf8706ed9f74f056b64468d2901cb4a9de7d19e (diff)
downloadffmpeg-2c793b8501fcf7fed579a756c8b95d8bd1ce61b2.tar.gz
ffmpeg: warn when -t is used for inputs.
Using -t on an input already have surprising results. Furthermore, using it on an input or an output makes a real difference if there are speed-altering filters. Implementing -t for inputs will probably result in some behavour changes.
-rw-r--r--ffmpeg.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index aa16e05f7e..2bf783278c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -531,8 +531,14 @@ static void reset_options(OptionsContext *o, int is_input)
memset(o, 0, sizeof(*o));
- if(is_input) o->recording_time = bak.recording_time;
- else o->recording_time = INT64_MAX;
+ if (is_input) {
+ o->recording_time = bak.recording_time;
+ if (o->recording_time != INT64_MAX)
+ av_log(NULL, AV_LOG_WARNING,
+ "-t is not an input option, keeping it for the next output;"
+ " consider fixing your command line.\n");
+ } else
+ o->recording_time = INT64_MAX;
o->mux_max_delay = 0.7;
o->limit_filesize = UINT64_MAX;
o->chapters_input_file = INT_MAX;