evr/presenter: Make sure to use positive stride for output mixer types.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a00a09c470
commit
595eded230
|
@ -332,7 +332,7 @@ static HRESULT video_presenter_configure_output_type(struct video_presenter *pre
|
|||
if (SUCCEEDED(hr))
|
||||
hr = MFGetPlaneSize(subtype.Data1, aperture->Area.cx, aperture->Area.cy, &size);
|
||||
if (SUCCEEDED(hr))
|
||||
hr = IMFMediaType_SetUINT32(media_type, &MF_MT_DEFAULT_STRIDE, stride);
|
||||
hr = IMFMediaType_SetUINT32(media_type, &MF_MT_DEFAULT_STRIDE, abs(stride));
|
||||
if (SUCCEEDED(hr))
|
||||
hr = IMFMediaType_SetUINT32(media_type, &MF_MT_SAMPLE_SIZE, size);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue