Skip to content

Commit

Permalink
Revert "AVFrame->pkt_durationからdurationの使用に変更。警告対策。"
Browse files Browse the repository at this point in the history
This reverts commit a591fc9.
  • Loading branch information
rigaya committed Oct 18, 2023
1 parent f9fefc5 commit 0cb3fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NVEncCore/rgy_input_avcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2999,7 +2999,7 @@ RGY_ERR RGYInputAvcodec::LoadNextFrameInternal(RGYFrame *pSurface) {
}
pSurface->setFlags(flags);
pSurface->setTimestamp(m_Demux.video.frame->pts);
pSurface->setDuration(m_Demux.video.frame->duration);
pSurface->setDuration(m_Demux.video.frame->pkt_duration);
if (pSurface->picstruct() == RGY_PICSTRUCT_AUTO) { //autoの時は、frameのインタレ情報をセットする
pSurface->setPicstruct(picstruct_avframe_to_rgy(m_Demux.video.frame));
}
Expand Down

0 comments on commit 0cb3fe6

Please sign in to comment.