mov: Raise ctts dts_shift threshold by 1
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Oct 2011 15:52:42 +0000 (17:52 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 19 Oct 2011 00:56:41 +0000 (02:56 +0200)
This fixes issue2246neu.mp4

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c

index 3bbfd26..e9f4162 100644 (file)
@@ -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);
     }