mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 14:00:08 +00:00
1 parent
8cc001768c
commit
97240cd5f2
1 file changed
+13
@@ -961,6 +961,19 @@ UnmapExit:
|
|||||||
|
|
||||||
bool PlVkRenderer::testRenderFrame(AVFrame *frame)
|
bool PlVkRenderer::testRenderFrame(AVFrame *frame)
|
||||||
{
|
{
|
||||||
|
#if PL_API_VER < 360
|
||||||
|
{
|
||||||
|
// Add a check for unrecognized pixel formats on older libplacebo
|
||||||
|
// versions which will dereference a null pointer in this case.
|
||||||
|
// See #1409 for details.
|
||||||
|
pl_frame out;
|
||||||
|
pl_frame_from_avframe(&out, frame);
|
||||||
|
if (out.num_planes == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Test if the frame can be mapped to libplacebo
|
// Test if the frame can be mapped to libplacebo
|
||||||
pl_frame mappedFrame;
|
pl_frame mappedFrame;
|
||||||
if (!mapAvFrameToPlacebo(frame, &mappedFrame)) {
|
if (!mapAvFrameToPlacebo(frame, &mappedFrame)) {
|
||||||
|
|||||||
Reference in new issue
Block a user