From 67a2912307c3c08f2725ccae162cfe3426b80184 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sun, 15 Mar 2015 23:57:06 +0200 Subject: movenc: Don't assume that fragment durations in pts is equal to duration in dts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For strict CFR, they should be pretty much equal, but if the stream is VFR, there can be a sometimes significant difference. Calculate the pts duration separately, used in sidx atoms and for tfrf/tfxd boxes in smooth streaming ismv files. Also make sure to reduce the duration of sidx entries according to edit lists. Signed-off-by: Martin Storsjö --- libavformat/movenc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/movenc.h') diff --git a/libavformat/movenc.h b/libavformat/movenc.h index a1d49024bd..a61cfad273 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -105,6 +105,7 @@ typedef struct MOVTrack { int tref_id; ///< trackID of the referenced track int64_t start_dts; int64_t start_cts; + int64_t end_pts; int hint_track; ///< the track that hints this track, -1 if no hint track is set int src_track; ///< the track that this hint track describes -- cgit v1.2.3