summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-21 02:48:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-22 22:39:50 +0100
commit717ec57c7e22a5ad52fd5d447bdbad6d4c9e327f (patch)
tree7c8e64c521ec926ff024921d25c710563389c885 /libavformat
parenta89c01253190b9eb9de8e28a3252423bf7732511 (diff)
downloadffmpeg-streaming-717ec57c7e22a5ad52fd5d447bdbad6d4c9e327f.zip
ffmpeg-streaming-717ec57c7e22a5ad52fd5d447bdbad6d4c9e327f.tar.gz
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 <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud