diff options
author | Sasi Inguva <isasi-at-google.com@ffmpeg.org> | 2018-03-09 13:30:21 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-03-10 17:55:50 +0100 |
commit | 43205df645bc10bc780c646ca0d652b574535f06 (patch) | |
tree | a35a0fa72a91b230f9092231670eef678dbaeda2 /libavformat/isom.h | |
parent | b6fc09cdb4c4e5e4974ca35159f459174b9a9be5 (diff) | |
download | ffmpeg-43205df645bc10bc780c646ca0d652b574535f06.tar.gz |
lavf/mov.c: Use the correct offset to shift timestamp when seeking.
Fixes seek for files with empty edits and files with negative ctts
(dts_shift > 0). Added fate samples and tests.
Signed-off-by: Sasi Inguva <isasi@isasi.mtv.corp.google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r-- | libavformat/isom.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h index 65676fb0f5..4da34142f0 100644 --- a/libavformat/isom.h +++ b/libavformat/isom.h @@ -168,6 +168,7 @@ typedef struct MOVStreamContext { int *keyframes; int time_scale; int64_t time_offset; ///< time offset of the edit list entries + int64_t min_corrected_pts; ///< minimum Composition time shown by the edits excluding empty edits. int current_sample; int64_t current_index; MOVIndexRange* index_ranges; |