Module: wine Branch: master Commit: 7770f3173cd4ac034a7a3b3c1d9ce77bf0d2f1c9 URL: https://gitlab.winehq.org/wine/wine/-/commit/7770f3173cd4ac034a7a3b3c1d9ce77...
Author: Zhiyi Zhang zzhang@codeweavers.com Date: Fri Jun 2 17:30:13 2023 +0800
winegstreamer: Fix check for non-zero padding in mf_media_type_from_wg_format_video().
Similar to 35f9091, IsRectEmpty() is the wrong way to check if padding is empty.
---
dlls/winegstreamer/mfplat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/winegstreamer/mfplat.c b/dlls/winegstreamer/mfplat.c index 9cf98ec9dc4..e740807101e 100644 --- a/dlls/winegstreamer/mfplat.c +++ b/dlls/winegstreamer/mfplat.c @@ -531,7 +531,8 @@ static IMFMediaType *mf_media_type_from_wg_format_video(const struct wg_format * stride = -stride; IMFMediaType_SetUINT32(type, &MF_MT_DEFAULT_STRIDE, stride);
- if (!IsRectEmpty(&format->u.video.padding)) + if (format->u.video.padding.left || format->u.video.padding.right + || format->u.video.padding.top || format->u.video.padding.bottom) { MFVideoArea aperture = {