From 717ec57c7e22a5ad52fd5d447bdbad6d4c9e327f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 21 Feb 2014 02:48:39 +0100 Subject: avformat/movenc: shift positive timestamps to 0 if edit lists cannot be used Fix handling of timestamps which start far away from 0 Signed-off-by: Michael Niedermayer --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/movenc.c b/libavformat/movenc.c index af7efc9..80ddd2c 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3761,7 +3761,7 @@ static int mov_write_header(AVFormatContext *s) } if (!supports_edts(mov) && s->avoid_negative_ts < 0) { - s->avoid_negative_ts = 1; + s->avoid_negative_ts = 2; } /* Non-seekable output is ok if using fragmentation. If ism_lookahead -- cgit v1.1