From 490f53088d8cc2bf9590f0822cbd7e8bc73be55a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 20 Feb 2017 19:56:53 +0100 Subject: [PATCH] Fix a bad typo. --- ycbcr_conversion_effect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ycbcr_conversion_effect.cpp b/ycbcr_conversion_effect.cpp index 9c04e3a..6d3e909 100644 --- a/ycbcr_conversion_effect.cpp +++ b/ycbcr_conversion_effect.cpp @@ -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; -- 2.39.2