[vlc-commits] d3d11_surface: don't allow any GPU>CPU conversion other than D3D11 opaque chromas

Steve Lhomme git at videolan.org
Tue Oct 15 08:58:45 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Oct 15 08:54:36 2019 +0200| [17613169bcf5bf08654671a3902d86ae8f576615] | committer: Steve Lhomme

d3d11_surface: don't allow any GPU>CPU conversion other than D3D11 opaque chromas

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

 modules/hw/d3d11/d3d11_surface.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c
index 132a9cab33..c8f456df7c 100644
--- a/modules/hw/d3d11/d3d11_surface.c
+++ b/modules/hw/d3d11/d3d11_surface.c
@@ -612,10 +612,7 @@ int D3D11OpenConverter( vlc_object_t *obj )
 {
     filter_t *p_filter = (filter_t *)obj;
 
-    if ( p_filter->fmt_in.video.i_chroma != VLC_CODEC_D3D11_OPAQUE &&
-         p_filter->fmt_in.video.i_chroma != VLC_CODEC_D3D11_OPAQUE_10B &&
-         p_filter->fmt_in.video.i_chroma != VLC_CODEC_D3D11_OPAQUE_RGBA &&
-         p_filter->fmt_in.video.i_chroma != VLC_CODEC_D3D11_OPAQUE_BGRA )
+    if ( is_d3d11_opaque(p_filter->fmt_in.video.i_chroma) )
         return VLC_EGENERIC;
 
     if ( p_filter->fmt_in.video.i_visible_height != p_filter->fmt_out.video.i_visible_height



More information about the vlc-commits mailing list