Fix a bad typo.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 20 Feb 2017 18:56:53 +0000 (19:56 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 20 Feb 2017 18:56:57 +0000 (19:56 +0100)
ycbcr_conversion_effect.cpp

index 9c04e3a..6d3e909 100644 (file)
@@ -47,7 +47,7 @@ void YCbCrConversionEffect::set_gl_state(GLuint glsl_program_num, const string &
        } else {
                uniform_clamp_range = true;
 
-               if (ycbcr_format.num_levels == 0 && ycbcr_format.num_levels == 256) {  // 8-bit.
+               if (ycbcr_format.num_levels == 0 || ycbcr_format.num_levels == 256) {  // 8-bit.
                        // These limits come from BT.601 page 8, or BT.709, page 5.
                        uniform_ycbcr_min[0] = 16.0 / 255.0;
                        uniform_ycbcr_min[1] = 16.0 / 255.0;