aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2016-02-18 12:57:37 -0600
committerMichael Niedermayer <michael@niedermayer.cc>2016-04-27 04:40:11 +0200
commit36e5854801a8c81c09aa3600db861794090b4fd8 (patch)
treec2744a5183694b9c46f751fdd42e4b95ad51b153
parent82492c3a9609eea3adae09117ade5407e1ad3717 (diff)
downloadffmpeg-36e5854801a8c81c09aa3600db861794090b4fd8.tar.gz
lavf/mov: fix sidx with edit lists
(cherry picked from commit 3617e69d50dd9dd07b5011dfb9477a9d1a630354) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index cd692a362b..10572791f4 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3522,7 +3522,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);
}