mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-10 01:36:27 +00:00
Fail render frame test for unsupported pixel formats
This commit is contained in:
@@ -549,6 +549,12 @@ bool SdlRenderer::testRenderFrame(AVFrame* frame)
|
||||
|
||||
av_frame_free(&swFrame);
|
||||
}
|
||||
else if (!isPixelFormatSupported(m_VideoFormat, (AVPixelFormat)frame->format)) {
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Swframe pixel format unsupported: %d",
|
||||
frame->format);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user