diff options
author | Niklas Haas <git@nand.wakku.to> | 2015-01-07 08:25:22 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-07 14:22:17 +0100 |
commit | d66598eeed10175b946fda8c76712714f578bb56 (patch) | |
tree | 2241625d869f4e54c46b36fe69849896b4ae9382 /video/csputils.c | |
parent | a0959582631118078cd39695d023678ff4bfe9f8 (diff) | |
download | mpv-d66598eeed10175b946fda8c76712714f578bb56.tar.bz2 mpv-d66598eeed10175b946fda8c76712714f578bb56.tar.xz |
video: Remove some stale CMS code, minor cosmetics
This removes an old code path that was disabled in 016bb14.
Diffstat (limited to 'video/csputils.c')
-rw-r--r-- | video/csputils.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/video/csputils.c b/video/csputils.c index 9b558c9a3e..ea83739e8e 100644 --- a/video/csputils.c +++ b/video/csputils.c @@ -476,11 +476,7 @@ void mp_get_xyz2rgb_coeffs(struct mp_csp_params *params, // want to linearize any brightness additions. 2 is a reasonable // approximation for any sort of gamma function that could be in use. // As this is an aesthetic setting only, any exact values do not matter. - if (brightness < 0) { - brightness *= -brightness; - } else { - brightness *= brightness; - } + brightness *= fabs(brightness); for (int i = 0; i < 3; i++) m->c[i] = brightness; |