Skip to content
Snippets Groups Projects
Commit c39295be authored by Maxime Chapelet's avatar Maxime Chapelet
Browse files

decoder: videotoolbox: fix yuv matrix enum values

Color Primaries values were used instead of YCbCr Matrix values
parent 9ac09bf5
No related branches found
No related tags found
1 merge request!3530decoder: videotoolbox: fix yuv matrix enum values
Pipeline #332955 passed with stage
in 17 minutes and 22 seconds
......@@ -1236,11 +1236,11 @@ static CFMutableDictionaryRef CreateSessionDescriptionFormat(decoder_t *p_dec,
yuvmatrix = kCVImageBufferYCbCrMatrix_ITU_R_601_4;
break;
case COLOR_SPACE_BT2020:
yuvmatrix = kCVImageBufferColorPrimaries_ITU_R_2020;
yuvmatrix = kCVImageBufferYCbCrMatrix_ITU_R_2020;
break;
case COLOR_SPACE_BT709:
default:
yuvmatrix = kCVImageBufferColorPrimaries_ITU_R_709_2;
yuvmatrix = kCVImageBufferYCbCrMatrix_ITU_R_709_2;
break;
}
CFDictionarySetValue(decoderConfiguration, kCVImageBufferYCbCrMatrixKey,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment