Skip to content

Commit

Permalink
common: added traces to common utilities (#7672)
Browse files Browse the repository at this point in the history
Co-authored-by: Miroslav Goncharenko <[email protected]>
  • Loading branch information
gfxVPLsdm and mgonchar authored Feb 4, 2025
1 parent 8b4f6c6 commit 7312234
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions _studio/mfx_lib/shared/src/mfx_common_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ mfxStatus UpdateCscOutputFormat(mfxVideoParam *par, mfxFrameAllocRequest *reques
request->Info.Shift = 0;
break;
default:
return MFX_ERR_UNSUPPORTED;
MFX_RETURN(MFX_ERR_UNSUPPORTED);
}

request->Info.BitDepthChroma = request->Info.BitDepthLuma;
Expand Down Expand Up @@ -522,10 +522,10 @@ mfxStatus CheckVideoParamEncoders(mfxVideoParam *in, eMFXHWType type)
mfxStatus CheckBitstream(const mfxBitstream *bs)
{
if (!bs || !bs->Data)
return MFX_ERR_NULL_PTR;
MFX_RETURN(MFX_ERR_NULL_PTR);

if (bs->DataOffset + bs->DataLength > bs->MaxLength)
return MFX_ERR_UNDEFINED_BEHAVIOR;
MFX_RETURN(MFX_ERR_UNDEFINED_BEHAVIOR);

return MFX_ERR_NONE;
}
Expand Down Expand Up @@ -589,9 +589,7 @@ mfxStatus CheckFrameData(const mfxFrameSurface1 *surface)
if (surface->Data.MemId)
return MFX_ERR_NONE;

mfxStatus sts;
return
sts = CheckFramePointers(surface->Info, surface->Data);
MFX_RETURN(CheckFramePointers(surface->Info, surface->Data));
}

mfxStatus CheckDecodersExtendedBuffers(mfxVideoParam const* par)
Expand Down Expand Up @@ -770,7 +768,7 @@ mfxStatus PackMfxFrameRate(mfxU32 nom, mfxU32 den, mfxU32& packed)
}
}
packed = (den << 16) | nom;
return sts;
MFX_RETURN(sts);
}


Expand Down

0 comments on commit 7312234

Please sign in to comment.