Skip to content

Commit

Permalink
[Encode] Modify HDR params range check
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen, Bohan committed May 13, 2024
1 parent 88f2969 commit e533927
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ inline mfxStatus CheckAndFixMasteringDisplayColourVolumeInfo(mfxExtMasteringDisp
changed += CheckMaxOrClip(pMDCV->DisplayPrimariesY[0], 50000u);
changed += CheckMaxOrClip(pMDCV->DisplayPrimariesY[1], 50000u);
changed += CheckMaxOrClip(pMDCV->DisplayPrimariesY[2], 50000u);
changed += CheckMinOrClip(pMDCV->MaxDisplayMasteringLuminance, 1u);
changed += CheckMaxOrClip(pMDCV->MaxDisplayMasteringLuminance, 65535u);
changed += CheckMinOrClip(pMDCV->MinDisplayMasteringLuminance, 1u);
changed += CheckMaxOrClip(pMDCV->MinDisplayMasteringLuminance, 65535u);

return changed ? MFX_WRN_INCOMPATIBLE_VIDEO_PARAM : MFX_ERR_NONE;
}
Expand Down

0 comments on commit e533927

Please sign in to comment.