We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b1d47e commit bbafb74Copy full SHA for bbafb74
video/out/vo_gpu_next.c
@@ -1094,6 +1094,9 @@ static bool draw_frame(struct vo *vo, struct vo_frame *frame)
1094
if (target_csp.primaries == PL_COLOR_PRIM_UNKNOWN)
1095
target_csp.primaries = get_best_prim_container(&target_csp.hdr.prim);
1096
if (!pl_color_transfer_is_hdr(target_csp.transfer)) {
1097
+ // limit min_luma to 1000:1 contrast ratio in SDR mode
1098
+ if (target_csp.hdr.min_luma > PL_COLOR_SDR_WHITE / PL_COLOR_SDR_CONTRAST)
1099
+ target_csp.hdr.min_luma = 0;
1100
// Don't use reported display peak in SDR mode. Mostly because libplacebo
1101
// forcefully switches to PQ if hinting hdr metadata, ignoring the transfer
1102
// set in the hint. But also because setting target peak in SDR mode is
0 commit comments