[vlc-devel] [PATCH 3/4] d3d11va: when forcing the internal pool size, use the internal dimensions

Steve Lhomme robux4 at videolabs.io
Wed Dec 13 16:33:38 CET 2017


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

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index fb5bb22c31..133f29d8ee 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -703,6 +703,8 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int codec_id,
         msg_Dbg(va, "mismatching external pool sizes use the internal one %dx%d vs %dx%d",
                 sys->textureWidth, sys->textureHeight, fmt->i_width, fmt->i_height);
         dx_sys->can_extern_pool = false;
+        sys->textureWidth  = fmt->i_width;
+        sys->textureHeight = fmt->i_height;
     }
 
     D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC viewDesc;
-- 
2.14.2



More information about the vlc-devel mailing list