Skip to content

Commit

Permalink
[HEVCe] fix a build issue
Browse files Browse the repository at this point in the history
fix PCODECHAL_ENC_HEVC_B_MB_ENC_CURBE_G9 build issue
  • Loading branch information
bai-isaac committed Jul 26, 2024
1 parent 788f0e7 commit e877d4c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6182,7 +6182,11 @@ MOS_STATUS CodechalEncHevcStateG9::SetupBrcConstantTable(PMOS_SURFACE brcConstan
else
{
uint32_t curbeSize = 0;
PCODECHAL_ENC_HEVC_B_MB_ENC_CURBE_G9 curbe = (PCODECHAL_ENC_HEVC_B_MB_ENC_CURBE_G9)GetDefaultCurbeEncBKernel(curbeSize);
void* defaultCurbe = (void*)GetDefaultCurbeEncBKernel(curbeSize);
CODECHAL_ENCODE_ASSERT(defaultCurbe);

PCODECHAL_ENC_HEVC_B_MB_ENC_CURBE_G9 curbe;
CODECHAL_ENCODE_CHK_STATUS_RETURN(MOS_SecureMemcpy(curbe, sizeof(CODECHAL_ENC_HEVC_B_MB_ENC_CURBE_G9), defaultCurbe, curbeSize));

if(curbe == nullptr)
{
Expand Down

0 comments on commit e877d4c

Please sign in to comment.