Skip to content

Commit

Permalink
[Encode] Add CHK_NULL Return for *padding_data
Browse files Browse the repository at this point in the history
fix kw issue
  • Loading branch information
Bossonor authored and intel-mediadev committed Jul 2, 2023
1 parent 72ad964 commit 288423b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3515,6 +3515,7 @@ void CodechalVdencVp9StateG12::fill_pad_with_value(PMOS_SURFACE psSurface, uint3
return;

uint8_t* padding_data = (uint8_t *)MOS_AllocMemory(pitch);
CODECHAL_ENCODE_CHK_NULL_NO_STATUS_RETURN(padding_data);

int32_t LinearOffset;
int32_t TileOffset;
Expand Down

0 comments on commit 288423b

Please sign in to comment.