mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
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
This commit is contained in:
parent
6d90517275
commit
4b25ec3a9d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user