summaryrefslogtreecommitdiff
path: root/libavformat/isom.h
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-02-02 16:30:27 +0100
committerJanne Grunau <janne-libav@jannau.net>2012-02-02 17:39:13 +0100
commit7f19bdc2a29e0f9e3fff0da8c5fc1d2f7f972efc (patch)
tree7d16ca7c9548b8762874939777772403ab6f837e /libavformat/isom.h
parent2c98f407c8803da3002747f3a8d43696e8744dc7 (diff)
movdec: fix dts generation in fragmented files
Do not use AVStream's duration for dts generation since it contains in some cases the duration of the whole file instead of duration of the samples in the moov. This happens if the mdhd holds the duration of the whole file but has no entries or a zero duration in its stts.
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r--libavformat/isom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h
index 16d777651a..91fbf759f8 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -126,6 +126,7 @@ typedef struct MOVStreamContext {
uint32_t palette[256];
int has_palette;
int64_t data_size;
+ int64_t track_end; ///< used for dts generation in fragmented movie files
} MOVStreamContext;
typedef struct MOVContext {