1 parent 9442cd6 commit 3efa40dCopy full SHA for 3efa40d
1 file changed
src/filters/transform/MPCVideoDec/MPCVideoDec.cpp
@@ -3515,9 +3515,11 @@ DXVA2_ExtendedFormat CMPCVideoDecFilter::GetDXVA2ExtendedFormat(const AVCodecCon
3515
switch(color_trc) {
3516
case AVCOL_TRC_BT709:
3517
case AVCOL_TRC_SMPTE170M:
3518
+ fmt.VideoTransferFunction = DXVA2_VideoTransFunc_709;
3519
+ break;
3520
case AVCOL_TRC_BT2020_10:
3521
case AVCOL_TRC_BT2020_12:
- fmt.VideoTransferFunction = DXVA2_VideoTransFunc_709;
3522
+ fmt.VideoTransferFunction = (colorspace == AVCOL_SPC_BT2020_CL) ? MFVideoTransFunc_2020_const : MFVideoTransFunc_2020;
3523
break;
3524
case AVCOL_TRC_GAMMA22:
3525
fmt.VideoTransferFunction = DXVA2_VideoTransFunc_22;
0 commit comments