[vlc-commits] d3d11va: when forcing the internal pool size, use the internal dimensions
Steve Lhomme
git at videolan.org
Thu Dec 14 00:57:58 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Dec 13 16:33:38 2017 +0100| [966b7ab3788e5b39c9333e65a95476969b80e81d] | 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>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=966b7ab3788e5b39c9333e65a95476969b80e81d
---
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