vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Tue Feb 20 08:50:35 2018 +0100| [0b320e5ec137b7afb50d6c91cb6873859f066ff5] | committer: Steve Lhomme
d3d11va: it's unlikely that we'll use the vout pool but don't have enough slices > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b320e5ec137b7afb50d6c91cb6873859f066ff5 --- modules/codec/avcodec/d3d11va.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c index bcac511956..d14e2d2284 100644 --- a/modules/codec/avcodec/d3d11va.c +++ b/modules/codec/avcodec/d3d11va.c @@ -764,7 +764,7 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int codec_id, D3D11_TEXTURE2D_DESC texDesc; ID3D11Texture2D_GetDesc(pic->p_sys->texture[KNOWN_DXGI_INDEX], &texDesc); - if (texDesc.ArraySize < surface_count) + if (unlikely(texDesc.ArraySize < surface_count)) { msg_Warn(va, "not enough decoding slices in the texture (%d/%d)", texDesc.ArraySize, surface_count); _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits