[vlc-commits] d3d11va: fix buffer overrun

Steve Lhomme git at videolan.org
Tue Feb 20 09:08:50 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Feb 20 09:02:58 2018 +0100| [2d2494ffea0dcedfc7b2284ac9ab07b065d5e469] | committer: Steve Lhomme

d3d11va: fix buffer overrun

CID #1465381

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

 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 d14e2d2284..61765f6a6d 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -580,7 +580,7 @@ static int DxSetupOutput(vlc_va_t *va, const GUID *input, const video_format_t *
     if (IsEqualGUID(input,&DXVA_ModeHEVC_VLD_Main10) && !CanUseIntelHEVC(va))
         return VLC_EGENERIC;
 
-    DXGI_FORMAT processorInput[4];
+    DXGI_FORMAT processorInput[5];
     int idx = 0;
     if ( sys->render != DXGI_FORMAT_UNKNOWN )
         processorInput[idx++] = sys->render;



More information about the vlc-commits mailing list