From 578e4998641cb6272e300a70c881d66f5dd414e0 Mon Sep 17 00:00:00 2001 From: Rodger Combs Date: Thu, 18 Feb 2016 12:57:37 -0600 Subject: lavf/mov: fix sidx with edit lists (cherry picked from commit 3617e69d50dd9dd07b5011dfb9477a9d1a630354) Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index f9921b7426..032e364981 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3216,7 +3216,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom) } av_log(c->fc, AV_LOG_DEBUG, "calculated into dts %"PRId64"\n", dts); } else { - dts = frag->time; + dts = frag->time - sc->time_offset; av_log(c->fc, AV_LOG_DEBUG, "found frag time %"PRId64 ", using it for dts\n", dts); } -- cgit v1.2.1