From 4b43800079c45e048b13ff0bc8ef3826b0d7833f Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 29 Dec 2021 00:02:54 +0100 Subject: vo_gpu_next: fix --target-peak scaling This is in nits, so it needs to be converted. --- video/out/vo_gpu_next.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 6fc0a8c29c..fd4fd82b58 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -635,7 +635,7 @@ static void apply_target_options(struct priv *p, struct pl_frame *target) if (opts->target_trc) target->color.transfer = mp_trc_to_pl(opts->target_trc); if (opts->target_peak) - target->color.sig_peak = opts->target_peak; + target->color.sig_peak = opts->target_peak / PL_COLOR_SDR_WHITE; if (opts->dither_depth > 0) { struct pl_bit_encoding *tbits = &target->repr.bits; tbits->color_depth += opts->dither_depth - tbits->sample_depth; -- cgit v1.2.3