Print the friendly name of the unsupported AVPixelFormat in SDLRenderer

This commit is contained in:
Cameron Gutman 2024-08-19 20:58:45 -05:00
parent e01c42153c
commit bed3a6ecd8

View File

@ -330,8 +330,8 @@ ReadbackRetry:
break;
default:
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
"Performing color conversion on CPU due to lack of SDL support for format: %u",
frame->format);
"Performing color conversion on CPU due to lack of SDL support for format: %s",
av_get_pix_fmt_name((AVPixelFormat)frame->format));
sdlFormat = SDL_PIXELFORMAT_XRGB8888;
m_NeedsYuvToRgbConversion = true;
break;