Skip to content

Commit 3efa40d

Browse files
committed
MPCVideoDec - корректировка обработки значений AVCOL_TRC_BT2020_10 и AVCOL_TRC_BT2020_12.
1 parent 9442cd6 commit 3efa40d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/filters/transform/MPCVideoDec/MPCVideoDec.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3515,9 +3515,11 @@ DXVA2_ExtendedFormat CMPCVideoDecFilter::GetDXVA2ExtendedFormat(const AVCodecCon
35153515
switch(color_trc) {
35163516
case AVCOL_TRC_BT709:
35173517
case AVCOL_TRC_SMPTE170M:
3518+
fmt.VideoTransferFunction = DXVA2_VideoTransFunc_709;
3519+
break;
35183520
case AVCOL_TRC_BT2020_10:
35193521
case AVCOL_TRC_BT2020_12:
3520-
fmt.VideoTransferFunction = DXVA2_VideoTransFunc_709;
3522+
fmt.VideoTransferFunction = (colorspace == AVCOL_SPC_BT2020_CL) ? MFVideoTransFunc_2020_const : MFVideoTransFunc_2020;
35213523
break;
35223524
case AVCOL_TRC_GAMMA22:
35233525
fmt.VideoTransferFunction = DXVA2_VideoTransFunc_22;

0 commit comments

Comments
 (0)