[FFmpeg-cvslog] movenc: Write pts timestamps in tfxd, instead of dts timestamps

Martin Storsjö git at videolan.org
Thu Mar 19 12:47:53 CET 2015


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Mar 16 13:02:59 2015 +0200| [5cf892d6946b19a87bcd00d6b76ce81f45960fdb] | committer: Martin Storsjö

movenc: Write pts timestamps in tfxd, instead of dts timestamps

This matches what we write in tfra and tfrf since 9cbf70fa0e.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 libavformat/movenc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index b9e75f4..bc5370e 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2542,7 +2542,8 @@ static int mov_write_tfxd_tag(AVIOContext *pb, MOVTrack *track)
     avio_write(pb, uuid, sizeof(uuid));
     avio_w8(pb, 1);
     avio_wb24(pb, 0);
-    avio_wb64(pb, track->frag_start);
+    avio_wb64(pb, track->start_dts + track->frag_start +
+                  track->cluster[0].cts);
     avio_wb64(pb, track->start_dts + track->track_duration -
                   track->cluster[0].dts);
 



More information about the ffmpeg-cvslog mailing list