vo_gpu_next: fix --target-peak scaling

This is in nits, so it needs to be converted.
This commit is contained in:
Niklas Haas 2021-12-29 00:02:54 +01:00
parent 2157bb1995
commit 4b43800079
1 changed files with 1 additions and 1 deletions

View File

@ -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;