Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-21 05:48:39 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-02-23 01:39:50 +0400
commit717ec57c7e22a5ad52fd5d447bdbad6d4c9e327f (patch)
tree7c8e64c521ec926ff024921d25c710563389c885 /libavformat
parenta89c01253190b9eb9de8e28a3252423bf7732511 (diff)
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 af7efc9ba1..80ddd2c78f 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