mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +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);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user