Commit be401448 authored by Michael Niedermayer's avatar Michael Niedermayer

mov: Raise ctts dts_shift threshold by 1

This fixes issue2246neu.mp4
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 70d9fb69
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment