[vlc-commits] d3d11va: fix compilation

Steve Lhomme git at videolan.org
Tue Aug 2 11:45:43 CEST 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Aug  2 11:41:09 2016 +0200| [cc4ef9af8fe8ef0da742e86171d83179bd69c232] | committer: Jean-Baptiste Kempf

d3d11va: fix compilation

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 7f75b93..a5a8d76 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -311,6 +311,10 @@ static int Extract(vlc_va_t *va, picture_t *output, uint8_t *data)
             D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC viewDesc;
             ID3D11VideoDecoderOutputView_GetDesc( src, &viewDesc );
 
+
+            D3D11_TEXTURE2D_DESC dstDesc;
+            ID3D11Texture2D_GetDesc( (ID3D11Texture2D*) p_sys_out->texture, &dstDesc);
+
             /* copy decoder slice to surface */
             D3D11_BOX copyBox = {
                 .right = dstDesc.Width, .bottom = dstDesc.Height, .back = 1,



More information about the vlc-commits mailing list