[vlc-commits] d3d11va: when forcing the internal pool size, use the internal dimensions
    Steve Lhomme 
    git at videolan.org
       
    Sun Dec 17 23:18:14 CET 2017
    
    
  
vlc/vlc-3.0 | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Dec 13 16:33:38 2017 +0100| [b2f2f4938bec6124125562d95d7eff969a69d378] | committer: Jean-Baptiste Kempf
d3d11va: when forcing the internal pool size, use the internal dimensions
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 966b7ab3788e5b39c9333e65a95476969b80e81d)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=b2f2f4938bec6124125562d95d7eff969a69d378
---
 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;
    
    
More information about the vlc-commits
mailing list