diff options
author | Niklas Haas <git@haasn.dev> | 2021-12-29 00:02:54 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2021-12-29 00:02:54 +0100 |
commit | 4b43800079c45e048b13ff0bc8ef3826b0d7833f (patch) | |
tree | b7da88db6fa8451528d7789524f8ebcb60fc7989 /video/out | |
parent | 2157bb1995334e25bd865b438e23764ff966cacb (diff) | |
download | mpv-4b43800079c45e048b13ff0bc8ef3826b0d7833f.tar.bz2 mpv-4b43800079c45e048b13ff0bc8ef3826b0d7833f.tar.xz |
vo_gpu_next: fix --target-peak scaling
This is in nits, so it needs to be converted.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_gpu_next.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |