[FFmpeg-cvslog] Fix issue2246

Michael Niedermayer git at videolan.org
Sun Apr 3 18:20:09 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Mar  9 17:03:09 2011 +0100| [19457a5d4a4bd25783a6a7fb665eb509a693eb2e] | committer: Michael Niedermayer

Fix issue2246
ignore last ctts duration
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/mov.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 60dbbfc..c08b07e 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1499,7 +1499,7 @@ static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
 
         sc->ctts_data[i].count   = count;
         sc->ctts_data[i].duration= duration;
-        if (duration < 0)
+        if (duration < 0 && i+1<entries)
             sc->dts_shift = FFMAX(sc->dts_shift, -duration);
     }
 



More information about the ffmpeg-cvslog mailing list