--- ffmpeg-5.1.2.old/libavformat/mux.c +++ ffmpeg-5.1.2/libavformat/mux.c @@ -540,7 +540,7 @@ ((!(s->oformat->flags & AVFMT_TS_NONSTRICT) && st->codecpar->codec_type != AVMEDIA_TYPE_SUBTITLE && st->codecpar->codec_type != AVMEDIA_TYPE_DATA && - sti->cur_dts >= pkt->dts) || sti->cur_dts > pkt->dts)) { ++ sti->cur_dts > pkt->dts) || sti->cur_dts > pkt->dts)) { av_log(s, AV_LOG_ERROR, "Application provided invalid, non monotonically increasing dts to muxer in stream %d: %s >= %s\n", st->index, av_ts2str(sti->cur_dts), av_ts2str(pkt->dts));