From 7f19bdc2a29e0f9e3fff0da8c5fc1d2f7f972efc Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Thu, 2 Feb 2012 16:30:27 +0100 Subject: 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. --- libavformat/isom.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/isom.h') 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 { -- cgit v1.2.3