Skip to content

Commit

Permalink
字幕のタイムスタンプのソートのログを表示しないように変更。 ( #643 )
Browse files Browse the repository at this point in the history
なんかまだたくさん出るらしい。
  • Loading branch information
rigaya committed Nov 25, 2024
1 parent bc17848 commit cc6ef72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NVEncCore/rgy_output_avcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cc6ef72

Please sign in to comment.