Browse Source

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.
tags/n1.0
Nicolas George 13 years ago
parent
commit
2c793b8501
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      ffmpeg.c

+ 8
- 2
ffmpeg.c View File

@@ -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;


Loading…
Cancel
Save