Commit 7770f317 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

winegstreamer: Fix check for non-zero padding in mf_media_type_from_wg_format_video().

Similar to 35f9091b, IsRectEmpty() is the wrong way to check if padding is empty.
parent c29336fa
......@@ -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 =
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment