diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-26 10:47:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-26 10:59:45 +0200 |
commit | c4bf74022562036bac3f53f4d5b8b1787d904c24 (patch) | |
tree | cd4fe28c3ddd2c5a33bf92e470a7c40ddbe7b76a /libavformat/avformat.h | |
parent | 05f4c0506198548c2e93e2029763008383ab48ca (diff) | |
parent | c2cb01d418dd18e1cf997c038d37378d773121be (diff) | |
download | ffmpeg-c4bf74022562036bac3f53f4d5b8b1787d904c24.tar.gz |
Merge commit 'c2cb01d418dd18e1cf997c038d37378d773121be'
* commit 'c2cb01d418dd18e1cf997c038d37378d773121be':
lavf: introduce AVFMT_TS_NEGATIVE
Conflicts:
libavformat/avformat.h
libavformat/mux.c
tests/ref/lavf/asf
tests/ref/lavf/mkv
tests/ref/lavf/mpg
tests/ref/lavf/ts
tests/ref/seek/lavf-asf
tests/ref/seek/lavf-mkv
tests/ref/seek/lavf-mpg
tests/ref/seek/lavf-ts
This commit does not change the default ts behaviour, such
change will, if its done, be done separately.
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 80d693a113..d26964a165 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -366,6 +366,11 @@ typedef struct AVProbeData { /**< Format does not require strictly increasing timestamps, but they must still be monotonic */ +#define AVFMT_TS_NEGATIVE 0x40000 /**< Format allows muxing negative + timestamps. If not set the timestamp + will be shifted in av_write_frame and + av_interleaved_write_frame so they + start from 0. */ #define AVFMT_SEEK_TO_PTS 0x4000000 /**< Seeking is based on PTS */ @@ -1259,6 +1264,18 @@ typedef struct AVFormatContext { int raw_packet_buffer_remaining_size; /** + * Offset to remap timestamps to be non-negative. + * Expressed in timebase units. + * @see AVStream.mux_ts_offset + */ + int64_t offset; + + /** + * Timebase for the timestamp offset. + */ + AVRational offset_timebase; + + /** * IO repositioned flag. * This is set by avformat when the underlaying IO context read pointer * is repositioned, for example when doing byte based seeking. |