mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
Add workaround for incorrect color range in AMF AV1 encoding output
This commit is contained in:
@@ -569,6 +569,12 @@ bool PlVkRenderer::mapAvFrameToPlacebo(const AVFrame *frame, pl_frame* mappedFra
|
||||
mappedFrame->color.hdr.min_luma = PL_COLOR_HDR_BLACK;
|
||||
}
|
||||
|
||||
// HACK: AMF AV1 encoding on the host PC does not set full color range properly in the
|
||||
// bitstream data, so libplacebo incorrectly renders the content as limited range.
|
||||
//
|
||||
// As a workaround, set full range manually in the mapped frame ourselves.
|
||||
mappedFrame->repr.levels = PL_COLOR_LEVELS_FULL;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user