Skip to content

Commit

Permalink
[Decode] Improve H264 Level Handling (#6274)
Browse files Browse the repository at this point in the history
This patch is to enhance H264 Level Handling for clips level larger than
H264_LEVEL_62, will decode as LEVEL_52 and report a VPL warning.

Co-authored-by: Zhu, Steve R <[email protected]>
  • Loading branch information
gfxVPLsdm and SteveZIntel authored Dec 15, 2023
1 parent ae684e8 commit 244f156
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ inline bool CheckLevel(uint8_t level_idc, bool ignore_level_constrain = false)
{
(void)(ignore_level_constrain); //UNREFERENCED_PARAMETER

if (level_idc > H264VideoDecoderParams::H264_LEVEL_52)
{
MFX_LOG_WARN("H264 Level is larger than LEVEL 5.2!");
}

switch(level_idc)
{
case H264VideoDecoderParams::H264_LEVEL_1:
Expand Down

0 comments on commit 244f156

Please sign in to comment.