diff options
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index b9e75f420f..bc5370ee79 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); |