mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 05:34:17 +00:00
Add workaround for incorrect color range in AMF AV1 encoding output
This commit is contained in:
parent
34549864ad
commit
67e89d9e16
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue