From 7e42c4a1ef3e68e72c5dc868670a7b13153ebf94 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 18 Jun 2006 07:31:45 +0000 Subject: [PATCH] Fixed YUV overlay crash --- src/SDL_compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDL_compat.c b/src/SDL_compat.c index 45a8e9fdc..ed6a77d3d 100644 --- a/src/SDL_compat.c +++ b/src/SDL_compat.c @@ -1259,7 +1259,7 @@ SDL_CreateYUVOverlay(int w, int h, Uint32 format, SDL_Surface * display) case SDL_YUY2_OVERLAY: case SDL_UYVY_OVERLAY: case SDL_YVYU_OVERLAY: - overlay->pitches[0] = overlay->h * 2; + overlay->pitches[0] = overlay->w * 2; break; }