[vlc-commits] [Git][videolan/vlc][master] decoder: videotoolbox: fix yuv matrix enum values

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Apr 15 06:34:24 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
c39295be by Maxime Chapelet at 2023-04-14T08:15:43+00:00
decoder: videotoolbox: fix yuv matrix enum values

Color Primaries values were used instead of YCbCr Matrix values

- - - - -


1 changed file:

- modules/codec/videotoolbox/decoder.c


Changes:

=====================================
modules/codec/videotoolbox/decoder.c
=====================================
@@ -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,



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c39295bebd065d88f5712d871aee57efc995de02

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c39295bebd065d88f5712d871aee57efc995de02
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list