mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-22 08:07:22 +00:00
Fail render frame test for unsupported pixel formats
This commit is contained in:
1 parent
61092b34de
commit
f7c8ad4c5a
1 file changed
+6
@@ -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