[FFmpeg-cvslog] mov: Raise ctts dts_shift threshold by 1

Michael Niedermayer git at videolan.org
Wed Oct 19 03:40:50 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct 18 17:52:42 2011 +0200| [be401448e51f209a13e95d30f17d85d0168e1b40] | committer: Michael Niedermayer

mov: Raise ctts dts_shift threshold by 1
This fixes issue2246neu.mp4

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3bbfd26..e9f4162 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1605,7 +1605,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 && i+1<entries)
+        if (duration < 0 && i+2<entries)
             sc->dts_shift = FFMAX(sc->dts_shift, -duration);
     }
 



More information about the ffmpeg-cvslog mailing list