[vlc-commits] direct3d11: fix the chroma sub-sampling restriction on format selection

Steve Lhomme git at videolan.org
Fri Mar 13 10:28:34 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Mar 11 16:52:03 2020 +0100| [17195cd3156b76a878bd3c8f79834989bee1e680] | committer: Steve Lhomme

direct3d11: fix the chroma sub-sampling restriction on format selection

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17195cd3156b76a878bd3c8f79834989bee1e680
---

 modules/video_output/win32/direct3d11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index e365f24e09..dd815124e5 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -736,7 +736,7 @@ static const d3d_format_t *GetDisplayFormatByDepth(vout_display_t *vd, uint8_t b
     if (from_processor)
         supportFlags |= D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT;
     return FindD3D11Format( vd, vd->sys->d3d_dev, 0, rgb_yuv,
-                            bit_depth, widthDenominator, heightDenominator,
+                            bit_depth, widthDenominator+1, heightDenominator+1,
                             D3D11_CHROMA_CPU, supportFlags );
 }
 



More information about the vlc-commits mailing list