Skip to content
This repository was archived by the owner on Apr 1, 2019. It is now read-only.
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions samples/sample_multi_transcode/src/pipeline_transcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ mfxStatus CTranscodingPipeline::Decode()
break;
}

msdk_tick nFrameTime = msdk_time_get_tick() - nBeginTime;
msdk_tick nFrameTime = (msdk_time_get_tick() - nBeginTime) * 1000000 / msdk_time_get_frequency();
if (nFrameTime < m_nReqFrameTime)
{
MSDK_USLEEP((mfxU32)(m_nReqFrameTime - nFrameTime));
Expand Down Expand Up @@ -1240,7 +1240,7 @@ mfxStatus CTranscodingPipeline::Encode()
break;
}

msdk_tick nFrameTime = msdk_time_get_tick() - nBeginTime;
msdk_tick nFrameTime = (msdk_time_get_tick() - nBeginTime) * 1000000 / msdk_time_get_frequency();
if (nFrameTime < m_nReqFrameTime)
{
MSDK_USLEEP((mfxU32)(m_nReqFrameTime - nFrameTime));
Expand Down Expand Up @@ -1540,7 +1540,7 @@ mfxStatus CTranscodingPipeline::Transcode()
MSDK_CHECK_STATUS(sts, "PutBS failed");
}

msdk_tick nFrameTime = msdk_time_get_tick() - nBeginTime;
msdk_tick nFrameTime = (msdk_time_get_tick() - nBeginTime) * 1000000 / msdk_time_get_frequency();
if (nFrameTime < m_nReqFrameTime)
{
MSDK_USLEEP((mfxU32)(m_nReqFrameTime - nFrameTime));
Expand Down
7 changes: 5 additions & 2 deletions samples/sample_multi_transcode/src/transcode_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,6 @@ mfxStatus CmdProcessor::ParseParFile(FILE *parFile)
sts = TokenizeLine(pCur, currPos);
MSDK_CHECK_STATUS(sts, "TokenizeLine failed");

// save original cmd line for debug purposes
m_lines.push_back(msdk_string(pCur, currPos));
currPos = 0;
lineIndex++;
}
Expand Down Expand Up @@ -1507,6 +1505,11 @@ mfxStatus CmdProcessor::VerifyAndCorrectInputParams(TranscodingSample::sInputPar
return MFX_ERR_UNSUPPORTED;
}

if(InputParams.EncodeId == MFX_FOURCC_DUMP && InputParams.bUseOpaqueMemory)
{
InputParams.bUseOpaqueMemory = false;
}

return MFX_ERR_NONE;
} //mfxStatus CmdProcessor::VerifyAndCorrectInputParams(TranscodingSample::sInputParams &InputParams)

Expand Down