diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-23 01:44:37 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-24 22:46:11 +0400 |
commit | a908de7f49449beb66a9d70a0a06f8b59e564d69 (patch) | |
tree | fca78add9cd36e94dcae0ed011f2b60e081da92d /doc/formats.texi | |
parent | 6d18154f61d1e89f208ad3977d2c2d145c72086b (diff) |
avformat/options_table: add named constants for avoid_negative_ts
Idea-by: ubitux
Reviewed-by: Timothy Gu <timothygu99@gmail.com>
Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/formats.texi')
-rw-r--r-- | doc/formats.texi | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/formats.texi b/doc/formats.texi index bdd144e451..027510eb6d 100644 --- a/doc/formats.texi +++ b/doc/formats.texi @@ -125,18 +125,26 @@ Consider things that a sane encoder should not do as an error. Use wallclock as timestamps. @item avoid_negative_ts @var{integer} (@emph{output}) -Shift timestamps to make them non-negative. A value of 1 enables shifting, -a value of 0 disables it, the default value of -1 enables shifting -when required by the target format. + +Possible values: +@table @samp +@item make_non_negative +Shift timestamps to make them non-negative. +Also note that this affects only leading negative timestamps, and not +non-monotonic negative timestamps. +@item make_zero +Shift timestamps so that the first timestamp is 0. +@item auto (default) +Enables shifting when required by the target format. +@item disabled +Disables shifting of timestamp. +@end table When shifting is enabled, all output timestamps are shifted by the same amount. Audio, video, and subtitles desynching and relative timestamp differences are preserved compared to how they would have been without shifting. -Also note that this affects only leading negative timestamps, and not -non-monotonic negative timestamps. - @item skip_initial_bytes @var{integer} (@emph{input}) Set number of bytes to skip before reading header and frames if set to 1. Default is 0. |