diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-03-09 17:03:09 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-03 16:40:12 +0200 |
commit | 19457a5d4a4bd25783a6a7fb665eb509a693eb2e (patch) | |
tree | 098f7da44de1e41fa9dd257d900f997fd39a0d72 /libavformat/mov.c | |
parent | 7d948dc424c3620e351d27afdf933c99f9435467 (diff) | |
download | ffmpeg-19457a5d4a4bd25783a6a7fb665eb509a693eb2e.tar.gz |
Fix issue2246
ignore last ctts duration
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 60dbbfca2e..c08b07e55d 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -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); } |