Skip to content

Commit ba9ee7e

Browse files
author
Chen, Bohan
committed
[Encode] Modify HDR params range check
1 parent 88f2969 commit ba9ee7e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

_studio/mfx_lib/encode_hw/av1/agnostic/base/av1ehw_base_hdr.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ inline mfxStatus CheckAndFixMasteringDisplayColourVolumeInfo(mfxExtMasteringDisp
5252
changed += CheckMaxOrClip(pMDCV->DisplayPrimariesY[0], 50000u);
5353
changed += CheckMaxOrClip(pMDCV->DisplayPrimariesY[1], 50000u);
5454
changed += CheckMaxOrClip(pMDCV->DisplayPrimariesY[2], 50000u);
55-
changed += CheckMinOrClip(pMDCV->MaxDisplayMasteringLuminance, 1u);
56-
changed += CheckMaxOrClip(pMDCV->MaxDisplayMasteringLuminance, 65535u);
57-
changed += CheckMinOrClip(pMDCV->MinDisplayMasteringLuminance, 1u);
58-
changed += CheckMaxOrClip(pMDCV->MinDisplayMasteringLuminance, 65535u);
55+
changed += CheckMaxOrClip(pMDCV->MaxDisplayMasteringLuminance, 16777215u);
56+
changed += CheckMaxOrClip(pMDCV->MinDisplayMasteringLuminance, 262143u);
5957

6058
return changed ? MFX_WRN_INCOMPATIBLE_VIDEO_PARAM : MFX_ERR_NONE;
6159
}

0 commit comments

Comments
 (0)