From ff18d7cfa065491d5f648d554ee8af24e5c55474 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 26 Feb 2024 15:52:21 -0800 Subject: [PATCH] testffmpeg: added pixel format mapping for NV12 and NV21 --- test/testffmpeg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/testffmpeg.c b/test/testffmpeg.c index b801d2d48..cbd106d83 100644 --- a/test/testffmpeg.c +++ b/test/testffmpeg.c @@ -259,6 +259,10 @@ static Uint32 GetTextureFormat(enum AVPixelFormat format) return SDL_PIXELFORMAT_YUY2; case AV_PIX_FMT_UYVY422: return SDL_PIXELFORMAT_UYVY; + case AV_PIX_FMT_NV12: + return SDL_PIXELFORMAT_NV12; + case AV_PIX_FMT_NV21: + return SDL_PIXELFORMAT_NV21; default: return SDL_PIXELFORMAT_UNKNOWN; }