summaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-18 17:52:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-19 02:56:41 +0200
commitbe401448e51f209a13e95d30f17d85d0168e1b40 (patch)
tree71816ba7a7629031b5145822f7f45f7e1915de46 /libavformat/mov.c
parent70d9fb696393277247101da47e67d568a6aea4d9 (diff)
downloadffmpeg-streaming-be401448e51f209a13e95d30f17d85d0168e1b40.zip
ffmpeg-streaming-be401448e51f209a13e95d30f17d85d0168e1b40.tar.gz
mov: Raise ctts dts_shift threshold by 1
This fixes issue2246neu.mp4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3bbfd26..e9f4162 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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);
}
OpenPOWER on IntegriCloud