Skip to content

Commit

Permalink
source/encoder/encoder.cpp: emit error if not all frames are encoded
Browse files Browse the repository at this point in the history
Signed-off-by: akarin <i@akarin.info>
  • Loading branch information
AkarinVS committed Feb 25, 2022
1 parent f951fb7 commit 095f84f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/encoder/encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2757,6 +2757,8 @@ void Encoder::printSummary()
(float)100.0 * (m_rateControl->m_numEntries - m_rpsInSpsCount) / m_rateControl->m_numEntries);
}

if (m_param->totalFrames && (uint32_t)m_param->totalFrames > m_analyzeAll.m_numPics)
x265_log(m_param, X265_LOG_ERROR, "not all %d frames encoded.\n", m_param->totalFrames);
if (m_analyzeAll.m_numPics)
{
int p = 0;
Expand Down

0 comments on commit 095f84f

Please sign in to comment.