git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b81b0cc
)
movenc: Write pts timestamps in tfxd, instead of dts timestamps
author
Martin Storsjö
<martin@martin.st>
Mon, 16 Mar 2015 11:02:59 +0000
(13:02 +0200)
committer
Martin Storsjö
<martin@martin.st>
Thu, 19 Mar 2015 08:27:12 +0000
(10:27 +0200)
This matches what we write in tfra and tfrf since
9cbf70fa0e
.
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/movenc.c
patch
|
blob
|
history
diff --git
a/libavformat/movenc.c
b/libavformat/movenc.c
index
b9e75f4
..
bc5370e
100644
(file)
--- 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);