From 6b9cfd2629767ba9e99eb8547258bea73c539a09 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Tue, 24 Apr 2012 13:47:08 -0500 Subject: [PATCH] strmbase: get_VideoHeight should always have a positive height. --- dlls/strmbase/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/strmbase/video.c b/dlls/strmbase/video.c index 83cd37f43d8..1c4f3606f67 100644 --- a/dlls/strmbase/video.c +++ b/dlls/strmbase/video.c @@ -156,7 +156,7 @@ HRESULT WINAPI BaseControlVideoImpl_get_VideoHeight(IBasicVideo *iface, LONG *pV TRACE("(%p/%p)->(%p)\n", This, iface, pVideoHeight); vih = This->pFuncsTable->pfnGetVideoFormat(This); - *pVideoHeight = vih->bmiHeader.biHeight; + *pVideoHeight = abs(vih->bmiHeader.biHeight); return S_OK; } -- 2.11.4.GIT