[vlc-commits] dxva2: fix height used for the decoding buffers

Steve Lhomme git at videolan.org
Mon Jun 26 18:09:25 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Mon Jun 26 18:05:03 2017 +0200| [48d377f21bbb4c769c572cc8252c7736d9bdd9a1] | committer: Jean-Baptiste Kempf

dxva2: fix height used for the decoding buffers

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

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

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 318aff89e9..31c8f67afb 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -614,7 +614,7 @@ static int DxCreateVideoDecoder(vlc_va_t *va, int codec_id,
 
     hr = IDirectXVideoDecoderService_CreateSurface(sys->d3ddec,
                                                          fmt->i_width,
-                                                         fmt->i_width,
+                                                         fmt->i_height,
                                                          surface_count - 1,
                                                          p_sys->render,
                                                          D3DPOOL_DEFAULT,
@@ -632,7 +632,7 @@ static int DxCreateVideoDecoder(vlc_va_t *va, int codec_id,
     IDirect3DSurface9 *tstCrash;
     hr = IDirectXVideoDecoderService_CreateSurface(sys->d3ddec,
                                                          fmt->i_width,
-                                                         fmt->i_width,
+                                                         fmt->i_height,
                                                          0,
                                                          p_sys->render,
                                                          D3DPOOL_DEFAULT,



More information about the vlc-commits mailing list