Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

[samples]: Added comparison between m_output_count and MFX_INFINITE #2982

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/sample_decode/src/pipeline_decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ mfxStatus CDecodingPipeline::RunDecoding()
deliverThread = std::thread (&CDecodingPipeline::DeliverLoop, this);
}

while (((sts == MFX_ERR_NONE) || (MFX_ERR_MORE_DATA == sts) || (MFX_ERR_MORE_SURFACE == sts)) && (m_nFrames > m_output_count))
while (((sts == MFX_ERR_NONE) || (MFX_ERR_MORE_DATA == sts) || (MFX_ERR_MORE_SURFACE == sts)) && ((m_nFrames == MFX_INFINITE) || (m_nFrames > m_output_count)))
{
if (MFX_ERR_NONE != m_error) {
msdk_printf(MSDK_STRING("DeliverOutput return error = %d\n"),m_error);
Expand Down