sdl12-compat: fixed build ( -Werror=declaration-after-statement )

From 5ccf36fd0b430b48274e7d149494e6b3c7983de1 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 24 Mar 2022 00:33:50 +0300
Subject: [PATCH] fixed build ( -Werror=declaration-after-statement )

---
 src/SDL12_compat.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index d9788a6..05004f3 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -6630,10 +6630,11 @@ DECLSPEC void SDLCALL
 SDL_FreeYUVOverlay(SDL12_Overlay *overlay12)
 {
     if (overlay12) {
+        SDL12_YUVData *hwdata;
         if (QueuedDisplayOverlay12 == overlay12) {
             QueuedDisplayOverlay12 = NULL;
         }
-        SDL12_YUVData *hwdata = (SDL12_YUVData *) overlay12->hwdata;
+        hwdata = (SDL12_YUVData *) overlay12->hwdata;
         SDL20_DestroyTexture(hwdata->texture20);
         SDL20_free(hwdata->pixelbuf);
         SDL20_free(overlay12);