diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-26 15:55:16 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-11-07 12:11:35 +0200 |
commit | 1384df641994bf3d6cb51084290aa94752737bae (patch) | |
tree | 2a6afda25be9445d37d7e5436efaa7e3e5479132 /libavformat/options_table.h | |
parent | 4981baf9b803f3c4866b2e97fdadb008c62dc7ad (diff) | |
download | ffmpeg-1384df641994bf3d6cb51084290aa94752737bae.tar.gz |
lavf: Add an option for avoiding negative timestamps
This is the same logic as is invoked on AVFMT_TS_NEGATIVE,
but which can be enabled manually, or can be enabled
in muxers which only need it in certain conditions.
Also allow using the same mechanism to force streams to start
at 0.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/options_table.h')
-rw-r--r-- | libavformat/options_table.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/options_table.h b/libavformat/options_table.h index 0f7207ccf1..8372ef3650 100644 --- a/libavformat/options_table.h +++ b/libavformat/options_table.h @@ -66,6 +66,10 @@ static const AVOption avformat_options[] = { {"normal", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_COMPLIANCE_NORMAL }, INT_MIN, INT_MAX, D|E, "strict"}, {"experimental", "allow non-standardized experimental variants", 0, AV_OPT_TYPE_CONST, {.i64 = FF_COMPLIANCE_EXPERIMENTAL }, INT_MIN, INT_MAX, D|E, "strict"}, {"max_ts_probe", "maximum number of packets to read while waiting for the first timestamp", OFFSET(max_ts_probe), AV_OPT_TYPE_INT, { .i64 = 50 }, 0, INT_MAX, D }, +{"avoid_negative_ts", "shift timestamps so they start at 0", OFFSET(avoid_negative_ts), AV_OPT_TYPE_INT, {.i64 = -1}, -1, 2, E, "avoid_negative_ts"}, +{"auto", "enabled when required by target format", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_AVOID_NEG_TS_AUTO }, INT_MIN, INT_MAX, E, "avoid_negative_ts"}, +{"make_non_negative", "shift timestamps so they are non negative", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE }, INT_MIN, INT_MAX, E, "avoid_negative_ts"}, +{"make_zero", "shift timestamps so they start at 0", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_AVOID_NEG_TS_MAKE_ZERO }, INT_MIN, INT_MAX, E, "avoid_negative_ts"}, {NULL}, }; |