1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

winegstreamer: Fix check for non-zero padding in h264 transform.

This commit is contained in:
Paul Gofman 2023-04-03 17:23:43 -06:00 committed by Alexandre Julliard
parent 64cca15329
commit 35f9091bee

View file

@ -183,7 +183,8 @@ static HRESULT fill_output_media_type(struct h264_decoder *decoder, IMFMediaType
} }
if (FAILED(hr = IMFMediaType_GetItem(media_type, &MF_MT_MINIMUM_DISPLAY_APERTURE, NULL)) if (FAILED(hr = IMFMediaType_GetItem(media_type, &MF_MT_MINIMUM_DISPLAY_APERTURE, NULL))
&& !IsRectEmpty(&wg_format->u.video.padding)) && (wg_format->u.video.padding.left || wg_format->u.video.padding.right || wg_format->u.video.padding.top
|| wg_format->u.video.padding.bottom))
{ {
MFVideoArea aperture = MFVideoArea aperture =
{ {