diff --git a/libavformat/utils.c b/libavformat/utils.c index 69f9653190..733c6d65dc 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1129,6 +1129,7 @@ static void update_initial_timestamps(AVFormatContext *s, int stream_index, if (st->first_dts != AV_NOPTS_VALUE || dts == AV_NOPTS_VALUE || st->cur_dts == AV_NOPTS_VALUE || + st->cur_dts < INT_MIN + RELATIVE_TS_BASE || is_relative(dts)) return;