Skip to content

Commit

Permalink
fix yuv422p10le colours #613
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Nov 6, 2023
1 parent 21c6d61 commit d21d876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KSPlayer/Metal/BufferProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public extension CVPixelBuffer {

var bitDepth: Int32 {
switch CVPixelBufferGetPixelFormatType(self) {
case kCVPixelFormatType_420YpCbCr10BiPlanarFullRange, kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange:
case kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange, kCVPixelFormatType_422YpCbCr10BiPlanarVideoRange, kCVPixelFormatType_444YpCbCr10BiPlanarVideoRange, kCVPixelFormatType_420YpCbCr10BiPlanarFullRange, kCVPixelFormatType_422YpCbCr10BiPlanarFullRange, kCVPixelFormatType_444YpCbCr10BiPlanarFullRange:
return 10
default:
return 8
Expand Down

0 comments on commit d21d876

Please sign in to comment.