summaryrefslogtreecommitdiff
path: root/libavformat/ffmenc.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-04-03 14:11:10 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-04-25 10:13:27 +0200
commitc2cb01d418dd18e1cf997c038d37378d773121be (patch)
tree4a9a581316f6a1f9cba7de6460319224601d21f3 /libavformat/ffmenc.c
parentfc18cc44ebfae07da153dc782572e7ce2f6fe47d (diff)
downloadffmpeg-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/ffmenc.c')
-rw-r--r--libavformat/ffmenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c
index 386487f1f9..91658e12dd 100644
--- a/libavformat/ffmenc.c
+++ b/libavformat/ffmenc.c
@@ -245,4 +245,5 @@ AVOutputFormat ff_ffm_muxer = {
.write_header = ffm_write_header,
.write_packet = ffm_write_packet,
.write_trailer = ffm_write_trailer,
+ .flags = AVFMT_TS_NEGATIVE,
};