[vlc-commits] d3d11va: Fix UWP build
Hugo Beauzée-Luyssen
git at videolan.org
Tue Jun 27 10:27:27 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Jun 26 14:04:41 2017 +0200| [4727c59a4092f4e5c7670698993274cf9607b8cb] | committer: Hugo Beauzée-Luyssen
d3d11va: Fix UWP build
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4727c59a4092f4e5c7670698993274cf9607b8cb
---
modules/codec/avcodec/d3d11va.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index fa427de5ca..36a8205f24 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -711,10 +711,10 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int codec_id,
/* On the Xbox 1/S, any decoding of H264 with one dimension over 2304
* crashes totally the device */
if (codec_id == AV_CODEC_ID_H264 &&
- (dx_sys->surface_width > 2304 || dx_sys->surface_height > 2304) &&
+ (dx_sys->va_pool.surface_width > 2304 || dx_sys->va_pool.surface_height > 2304) &&
isXboxHardware(dx_sys->d3ddev))
{
- msg_Warn(va, "%dx%d resolution not supported by your hardware", dx_sys->surface_width, dx_sys->surface_height);
+ msg_Warn(va, "%dx%d resolution not supported by your hardware", dx_sys->va_pool.surface_width, dx_sys->va_pool.surface_height);
return VLC_EGENERIC;
}
#endif
More information about the vlc-commits
mailing list