vlc | branch: master | Steve Lhomme <[email protected]> | Wed Jun 21 12:56:50 
2017 +0200| [41b9826f5582628e3112a4c797984a8296850a95] | committer: 
Jean-Baptiste Kempf

d3d11va: fix wrong array initialization

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/codec/avcodec/d3d11va.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index de70df0b1f..f51b741c4f 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -910,7 +910,7 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int 
codec_id, const video_forma
 
             if (texDesc.BindFlags & D3D11_BIND_SHADER_RESOURCE)
             {
-                ID3D11Texture2D *textures[D3D11_MAX_SHADER_VIEW] = {p_texture, 
p_texture, p_texture};
+                ID3D11Texture2D *textures[D3D11_MAX_SHADER_VIEW] = {p_texture, 
p_texture};
                 AllocateShaderView(VLC_OBJECT(va), dx_sys->d3ddev, textureFmt, 
textures, dx_sys->surface_count, &sys->resourceView[dx_sys->surface_count * 
D3D11_MAX_SHADER_VIEW]);
             }
         }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to