mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Fix colorspace conversion with SDL as frontend renderer
This commit is contained in:
@@ -270,6 +270,11 @@ void SdlRenderer::renderFrame(AVFrame* frame)
|
|||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// av_hwframe_transfer_data() can nuke frame metadata,
|
||||||
|
// so anything other than width, height, and format must
|
||||||
|
// be set *after* calling av_hwframe_transfer_data().
|
||||||
|
swFrame->colorspace = frame->colorspace;
|
||||||
|
|
||||||
frame = swFrame;
|
frame = swFrame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user