diff options
author | Niklas Haas <git@haasn.xyz> | 2019-09-05 17:10:19 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-09-05 19:13:44 +0300 |
commit | 4b25ec3a9d43638812adab38fe6177a57f81785a (patch) | |
tree | 65387c294f2bc51566464ecdaae70f701a7732c6 /video | |
parent | 6d905172758d26c5406fdf11ead2763ab305c0b8 (diff) | |
download | mpv-4b25ec3a9d43638812adab38fe6177a57f81785a.tar.bz2 mpv-4b25ec3a9d43638812adab38fe6177a57f81785a.tar.xz |
vo/gpu: fix check on src/dst peak mismatch
In the past, src peak was always equal to or higher than dst peak. But
since `--target-peak` got introduced, this could no longer be the case.
This leads to an incorrect result (scaling for peak mismatch in gamma
light) unless some other option (CMS, --linear-scaling, etc.) forces the
linearization.
Fixes #6533
Diffstat (limited to 'video')
-rw-r--r-- | video/out/gpu/video_shaders.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gpu/video_shaders.c b/video/out/gpu/video_shaders.c index b34aa90bfa..e3021fdb9c 100644 --- a/video/out/gpu/video_shaders.c +++ b/video/out/gpu/video_shaders.c @@ -774,7 +774,7 @@ void pass_color_map(struct gl_shader_cache *sc, bool is_linear, // operations needs it bool need_linear = src.gamma != dst.gamma || src.primaries != dst.primaries || - src.sig_peak > dst.sig_peak || + src.sig_peak != dst.sig_peak || need_ootf; if (need_linear && !is_linear) { |