Anton Baskanov : winegstreamer: Fix negative height image size calculation.
Module: wine Branch: master Commit: a455dd53d5af144aae70263d9f4e798a305ab775 URL: https://gitlab.winehq.org/wine/wine/-/commit/a455dd53d5af144aae70263d9f4e798... Author: Anton Baskanov <baskanov(a)gmail.com> Date: Sat Apr 15 13:33:41 2023 +0700 winegstreamer: Fix negative height image size calculation. Fixes intro video playback in multiple games (e.g. Earth 2150). --- dlls/winegstreamer/quartz_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winegstreamer/quartz_parser.c b/dlls/winegstreamer/quartz_parser.c index 590ef48fef4..de62187cd7d 100644 --- a/dlls/winegstreamer/quartz_parser.c +++ b/dlls/winegstreamer/quartz_parser.c @@ -286,7 +286,7 @@ unsigned int wg_format_get_max_size(const struct wg_format *format) { case WG_MAJOR_TYPE_VIDEO: { - unsigned int width = format->u.video.width, height = format->u.video.height; + unsigned int width = format->u.video.width, height = abs(format->u.video.height); switch (format->u.video.format) {
participants (1)
-
Alexandre Julliard