[vlc-devel] [PATCH] dxva2: fix height used for the decoding buffers
Steve Lhomme
robux4 at videolabs.io
Mon Jun 26 18:05:03 CEST 2017
---
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,
--
2.12.1
More information about the vlc-devel
mailing list