diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-04-03 14:11:10 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-04-25 10:13:27 +0200 |
commit | c2cb01d418dd18e1cf997c038d37378d773121be (patch) | |
tree | 4a9a581316f6a1f9cba7de6460319224601d21f3 /libavformat/md5enc.c | |
parent | fc18cc44ebfae07da153dc782572e7ce2f6fe47d (diff) | |
download | ffmpeg-c2cb01d418dd18e1cf997c038d37378d773121be.tar.gz |
lavf: introduce AVFMT_TS_NEGATIVE
Most formats do not support negative timestamps, shift them to avoid
unexpected behaviour and a number of bad crashes.
CC:libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/md5enc.c')
-rw-r--r-- | libavformat/md5enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/md5enc.c b/libavformat/md5enc.c index 16412c9a34..92497045eb 100644 --- a/libavformat/md5enc.c +++ b/libavformat/md5enc.c @@ -127,6 +127,7 @@ AVOutputFormat ff_framemd5_muxer = { .write_header = framemd5_write_header, .write_packet = framemd5_write_packet, .write_trailer = framemd5_write_trailer, - .flags = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT, + .flags = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT | + AVFMT_TS_NEGATIVE, }; #endif |