summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2016-02-18 12:57:37 -0600
committerRodger Combs <rodger.combs@gmail.com>2016-02-28 15:00:34 -0600
commit3617e69d50dd9dd07b5011dfb9477a9d1a630354 (patch)
tree5a558ba945f87339f309203691e6ea79fa63fcfb
parente7345abe052b497cb9e143d64872d5d18d00f147 (diff)
lavf/mov: fix sidx with edit lists
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index b1a2ea7719..dd7890a396 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3610,7 +3610,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);
}