mirror of https://git.ffmpeg.org/ffmpeg.git
Fix issue2246
ignore last ctts duration Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7d948dc424
commit
19457a5d4a
|
@ -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].count = count;
|
||||||
sc->ctts_data[i].duration= duration;
|
sc->ctts_data[i].duration= duration;
|
||||||
if (duration < 0)
|
if (duration < 0 && i+1<entries)
|
||||||
sc->dts_shift = FFMAX(sc->dts_shift, -duration);
|
sc->dts_shift = FFMAX(sc->dts_shift, -duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue