File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/streaming/video/ffmpeg-renderers Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -709,7 +709,7 @@ void D3D11VARenderer::bindColorConversion(AVFrame* frame)
709709 bool fullRange = isFrameFullRange (frame);
710710 int colorspace = getFrameColorspace (frame);
711711 bool yuv444 = (m_DecoderParams.videoFormat & VIDEO_FORMAT_MASK_YUV444);
712- int bits = (colorspace == COLORSPACE_REC_2020 ) ? 10 : 8 ;
712+ int bits = (m_DecoderParams. videoFormat & VIDEO_FORMAT_MASK_10BIT ) ? 10 : 8 ;
713713
714714 if (yuv444) {
715715 // We'll need to use one of the 4:4:4 shaders for this pixel format
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ bool updateColorSpaceForFrame(AVFrame* frame)
264264 if (colorspace != m_LastColorSpace || fullRange != m_LastFullRange || m_HdrMetadataChanged) {
265265 CGColorSpaceRef newColorSpace;
266266 ParamBuffer paramBuffer;
267- int bits = (colorspace == COLORSPACE_REC_2020 ) ? 10 : 8 ;
267+ int bits = (m_VideoFormat & VIDEO_FORMAT_MASK_10BIT ) ? 10 : 8 ;
268268
269269 // Stop the display link before changing the Metal layer
270270 stopDisplayLink ();
You can’t perform that action at this time.
0 commit comments