X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=ycbcr_conversion_effect.cpp;h=6d3e909c819f73fa339b2e1f16bbac3a3406d44a;hp=9c04e3adb00634edcc1556f217b8f868cbd447bf;hb=490f53088d8cc2bf9590f0822cbd7e8bc73be55a;hpb=5422bdf551064462f1323ff0ddf465ccfa86dd01 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;