diff --git a/libavformat/mov.c b/libavformat/mov.c index 4c073a3cda..7c90d40f20 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2521,6 +2521,10 @@ static int mov_read_stts(MOVContext *c, AVIOContext *pb, MOVAtom atom) static void mov_update_dts_shift(MOVStreamContext *sc, int duration) { if (duration < 0) { + if (duration == INT_MIN) { + av_log(NULL, AV_LOG_WARNING, "mov_update_dts_shift(): dts_shift set to %d\n", INT_MAX); + duration++; + } sc->dts_shift = FFMAX(sc->dts_shift, -duration); } }