summaryrefslogtreecommitdiff
path: root/libavformat/movenc.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-03-15 23:57:06 +0200
committerMartin Storsjö <martin@martin.st>2015-03-19 10:27:20 +0200
commit67a2912307c3c08f2725ccae162cfe3426b80184 (patch)
treebe649cd0725e2a1aaa53e0a6f104f871845354dc /libavformat/movenc.h
parent5c337353a2546416631a87de4881850d99141c39 (diff)
movenc: Don't assume that fragment durations in pts is equal to duration in dts
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ö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r--libavformat/movenc.h1
1 files changed, 1 insertions, 0 deletions
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