As far as can be seen, this value is supposed to be the DTS of a
fragment in smooth streaming. Thus, don't take b-picture delay and
such into mention when calculating the start timestamp. The duration
calculation requires PTS values, so it is not touched.
---
libavformat/movenc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 11c8275..77f28b0 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3565,8 +3565,7 @@ 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->start_dts + track->frag_start +
- track->cluster[0].cts);
+ avio_wb64(pb, track->start_dts + track->frag_start);
avio_wb64(pb, track->end_pts -
(track->cluster[0].dts + track->cluster[0].cts));
--
2.5.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel