From cc6ef72855c0e486c2af684deef22cb91626f002 Mon Sep 17 00:00:00 2001 From: rigaya Date: Mon, 25 Nov 2024 19:39:15 +0900 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=B9=95=E3=81=AE=E3=82=BF=E3=82=A4?= =?UTF-8?q?=E3=83=A0=E3=82=B9=E3=82=BF=E3=83=B3=E3=83=97=E3=81=AE=E3=82=BD?= =?UTF-8?q?=E3=83=BC=E3=83=88=E3=81=AE=E3=83=AD=E3=82=B0=E3=82=92=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4=E3=80=82=20(=20#643=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit なんかまだたくさん出るらしい。 --- NVEncCore/rgy_output_avcodec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NVEncCore/rgy_output_avcodec.cpp b/NVEncCore/rgy_output_avcodec.cpp index a49218ce..f091d6d4 100644 --- a/NVEncCore/rgy_output_avcodec.cpp +++ b/NVEncCore/rgy_output_avcodec.cpp @@ -3638,7 +3638,7 @@ RGY_ERR RGYOutputAvcodec::WriteOtherPacket(AVPacket *pkt) { //以前のptsより前になりそうになったら修正する const auto maxPts = pMuxOther->lastPtsOut + ((m_Mux.format.formatCtx->oformat->flags & AVFMT_TS_NONSTRICT) ? 0 : 1); if (pkt->pts < maxPts) { - auto loglevel = (maxPts - pkt->pts > 2) ? RGY_LOG_WARN : RGY_LOG_DEBUG; + auto loglevel = (maxPts - pkt->pts > 2 && pMuxOther->streamOut->codecpar->codec_type != AVMEDIA_TYPE_SUBTITLE /*字幕の場合は頻繁に発生することがある*/) ? RGY_LOG_WARN : RGY_LOG_DEBUG; if (loglevel >= m_printMes->getLogLevel(RGY_LOGT_OUT)) { AddMessage(loglevel, _T("Timestamp error in stream %d, previous: %lld, current: %lld [timebase: %d/%d].\n"), pMuxOther->streamOut->index,