# HG changeset patch # User Sam Lantinga # Date 1150615905 0 # Node ID 66267c6a0b12aa8545b416c609ecc9a397b01766 # Parent c4aa1a2f48f174c533baa851f834fa1fe0a6cc34 Fixed YUV overlay crash diff -r c4aa1a2f48f1 -r 66267c6a0b12 src/SDL_compat.c --- a/src/SDL_compat.c Sun Jun 18 06:35:41 2006 +0000 +++ b/src/SDL_compat.c Sun Jun 18 07:31:45 2006 +0000 @@ -1259,7 +1259,7 @@ 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; }