SDL: Fixed mapping between Apple YUV formats and SDL formats

From 4ce4fc575a8cd2c47771b5983c792f4df9083c4a Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 10 Jun 2024 08:57:36 -0700
Subject: [PATCH] Fixed mapping between Apple YUV formats and SDL formats

Fixes https://github.com/libsdl-org/SDL/issues/10001
---
 src/camera/coremedia/SDL_camera_coremedia.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/camera/coremedia/SDL_camera_coremedia.m b/src/camera/coremedia/SDL_camera_coremedia.m
index 48ddb4c460bf6..48940f4930276 100644
--- a/src/camera/coremedia/SDL_camera_coremedia.m
+++ b/src/camera/coremedia/SDL_camera_coremedia.m
@@ -53,8 +53,8 @@ static SDL_PixelFormatEnum CoreMediaFormatToSDL(FourCharCode fmt)
         CASE(kCMPixelFormat_24RGB, SDL_PIXELFORMAT_RGB24);
         CASE(kCMPixelFormat_32ARGB, SDL_PIXELFORMAT_ARGB32);
         CASE(kCMPixelFormat_32BGRA, SDL_PIXELFORMAT_BGRA32);
-        CASE(kCMPixelFormat_422YpCbCr8, SDL_PIXELFORMAT_YUY2);
-        CASE(kCMPixelFormat_422YpCbCr8_yuvs, SDL_PIXELFORMAT_UYVY);
+        CASE(kCMPixelFormat_422YpCbCr8, SDL_PIXELFORMAT_UYVY);
+        CASE(kCMPixelFormat_422YpCbCr8_yuvs, SDL_PIXELFORMAT_YUY2);
         CASE(kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange, SDL_PIXELFORMAT_NV12);
         CASE(kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, SDL_PIXELFORMAT_NV12);
         CASE(kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange, SDL_PIXELFORMAT_P010);