lavf/mov.c: Use the correct offset to shift timestamp when seeking.
authorSasi Inguva <isasi-at-google.com@ffmpeg.org>
Fri, 9 Mar 2018 21:30:21 +0000 (13:30 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 10 Mar 2018 16:55:50 +0000 (17:55 +0100)
commit43205df645bc10bc780c646ca0d652b574535f06
treea35a0fa72a91b230f9092231670eef678dbaeda2
parentb6fc09cdb4c4e5e4974ca35159f459174b9a9be5
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>
libavformat/isom.h
libavformat/mov.c
tests/fate/seek.mak
tests/ref/seek/empty-edit-mp4 [new file with mode: 0644]
tests/ref/seek/test-iibbibb-mp4 [new file with mode: 0644]
tests/ref/seek/test-iibbibb-neg-ctts-mp4 [new file with mode: 0644]