Commit 19457a5d authored by Michael Niedermayer's avatar Michael Niedermayer

Fix issue2246

ignore last ctts duration
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7d948dc4
......@@ -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);
}
......
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