Commit deab5bb5 authored by Dmitry Ermilov's avatar Dmitry Ermilov Committed by Oleg Nabiullin

[h265] Fix GPU hang part #2

Reverted part of change in the original commit.
Signed-off-by: default avatarDmitry Ermilov <dmitry.ermilov@intel.com>
parent 8385f49e
...@@ -1799,18 +1799,15 @@ UMC::Status TaskSupplier_H265::AddOneFrame(UMC::MediaData * pSource) ...@@ -1799,18 +1799,15 @@ UMC::Status TaskSupplier_H265::AddOneFrame(UMC::MediaData * pSource)
case NAL_UT_PPS: case NAL_UT_PPS:
{ {
UMC::Status umsRes = DecodeHeaders(nalUnit); UMC::Status umsRes = DecodeHeaders(nalUnit);
int32_t nalIndex = pMediaDataEx->index;
int32_t size = pMediaDataEx->offsets[nalIndex + 1] - pMediaDataEx->offsets[nalIndex];
if (umsRes != UMC::UMC_OK) if (umsRes != UMC::UMC_OK)
{ {
if (umsRes == UMC::UMC_WRN_REPOSITION_INPROGRESS) if (umsRes == UMC::UMC_NTF_NEW_RESOLUTION ||
{
umsRes = UMC::UMC_OK;
}
else if (umsRes == UMC::UMC_NTF_NEW_RESOLUTION ||
(nut == NAL_UT_SPS && umsRes == UMC::UMC_ERR_INVALID_STREAM)) (nut == NAL_UT_SPS && umsRes == UMC::UMC_ERR_INVALID_STREAM))
{ {
int32_t nalIndex = pMediaDataEx->index;
int32_t size = pMediaDataEx->offsets[nalIndex + 1] - pMediaDataEx->offsets[nalIndex];
m_checkCRAInsideResetProcess = true; m_checkCRAInsideResetProcess = true;
if (AddSlice(0, !pSource) == UMC::UMC_OK) if (AddSlice(0, !pSource) == UMC::UMC_OK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment