[FFmpeg-cvslog] lavf/mov: fix sidx with edit lists

Rodger Combs git at videolan.org
Sat Mar 26 22:36:04 CET 2016


ffmpeg | branch: release/3.0 | Rodger Combs <rodger.combs at gmail.com> | Thu Feb 18 12:57:37 2016 -0600| [bf8f2fae2ad8498496e21de82299c5d777b03d04] | committer: Michael Niedermayer

lavf/mov: fix sidx with edit lists
(cherry picked from commit 3617e69d50dd9dd07b5011dfb9477a9d1a630354)

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf8f2fae2ad8498496e21de82299c5d777b03d04
---

 libavformat/mov.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 149e3b4..c5e0a1e 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3609,7 +3609,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);
             }



More information about the ffmpeg-cvslog mailing list