[FFmpeg-cvslog] movenc: fix edit list for the case of negative pts.

Michael Niedermayer git at videolan.org
Mon Oct 1 06:50:36 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Sep 29 06:31:18 2012 +0200| [14fd34d73bb0bcb227b62506fb51d63751c9b190] | committer: Michael Niedermayer

movenc: fix edit list for the case of negative pts.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=14fd34d73bb0bcb227b62506fb51d63751c9b190
---

 libavformat/movenc.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 4b0a547..ded2859 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 */



More information about the ffmpeg-cvslog mailing list