[vlc-commits] d3d11va: use the vlc_va_sys_t directly

Steve Lhomme git at videolan.org
Mon Jul 22 11:43:21 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jul 22 08:00:28 2019 +0200| [cfc4466704c26cb78d8e4f826672123249f22293] | committer: Steve Lhomme

d3d11va: use the vlc_va_sys_t directly

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

 modules/codec/avcodec/d3d11va.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index d058ebc4d0..f82121e517 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -358,7 +358,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
     va->sys = sys;
 
     sys->d3d_dev.d3ddevice = NULL;
-    va->sys->render = DXGI_FORMAT_UNKNOWN;
+    sys->render = DXGI_FORMAT_UNKNOWN;
     if ( p_sys != NULL && p_sys->context != NULL ) {
         HRESULT hr = D3D11_CreateDeviceExternal(va, p_sys->context, true, &sys->d3d_dev);
         if (FAILED(hr))
@@ -381,9 +381,9 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
                 sys->render = dstDesc.Format;
                 if (dstDesc.BindFlags & D3D11_BIND_DECODER)
                 {
-                    va->sys->textureWidth = dstDesc.Width;
-                    va->sys->textureHeight = dstDesc.Height;
-                    va->sys->totalTextureSlices = dstDesc.ArraySize;
+                    sys->textureWidth = dstDesc.Width;
+                    sys->textureHeight = dstDesc.Height;
+                    sys->totalTextureSlices = dstDesc.ArraySize;
                 }
             }
         }



More information about the vlc-commits mailing list