From: Steinar H. Gunderson Date: Mon, 20 Feb 2017 18:56:53 +0000 (+0100) Subject: Fix a bad typo. X-Git-Tag: 1.5.0~11 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=490f53088d8cc2bf9590f0822cbd7e8bc73be55a;hp=5422bdf551064462f1323ff0ddf465ccfa86dd01 Fix a bad typo. --- 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;