diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-29 06:31:18 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-01 04:53:40 +0200 |
commit | 14fd34d73bb0bcb227b62506fb51d63751c9b190 (patch) | |
tree | bb87b3c99821f6c9e2982be3ab90819df93d4480 /libavformat | |
parent | 015b805d13a293a68263d409a1e7b67d03d3302b (diff) | |
download | ffmpeg-14fd34d73bb0bcb227b62506fb51d63751c9b190.tar.gz |
movenc: fix edit list for the case of negative pts.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 4b0a547e70..ded2859719 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1672,6 +1672,10 @@ static int mov_write_edts_tag(AVIOContext *pb, MOVTrack *track) avio_wb32(pb, -1); } avio_wb32(pb, 0x00010000); + } else { + av_assert0(track->cluster[0].dts <= 0); + start_ct = -track->cluster[0].dts; + duration += delay; } /* duration */ |