lavf/mov: fix sidx with edit lists
authorRodger Combs <rodger.combs@gmail.com>
Thu, 18 Feb 2016 18:57:37 +0000 (12:57 -0600)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 29 Apr 2016 12:23:40 +0000 (14:23 +0200)
(cherry picked from commit 3617e69d50dd9dd07b5011dfb9477a9d1a630354)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c

index f9921b7..032e364 100644 (file)
@@ -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);
             }