]> git.sesse.net Git - movit/commitdiff
Fix a Valgrind hit.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 16 Jun 2018 19:26:47 +0000 (21:26 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 16 Jun 2018 19:26:47 +0000 (21:26 +0200)
ycbcr_input.cpp

index d6cefe65bfb4120069bc16107a02cdf677b84408..904180b853c622813e64b15d75045907c889cf43 100644 (file)
@@ -192,7 +192,7 @@ string YCbCrInput::output_fragment_shader()
 
 void YCbCrInput::change_ycbcr_format(const YCbCrFormat &ycbcr_format)
 {
-       if (cb_cr_offsets_equal) {
+       if (ycbcr_input_splitting == YCBCR_INPUT_SPLIT_Y_AND_CBCR && cb_cr_offsets_equal) {
                assert((fabs(ycbcr_format.cb_x_position - ycbcr_format.cr_x_position) < 1e-6) &&
                       (fabs(ycbcr_format.cb_y_position - ycbcr_format.cr_y_position) < 1e-6));
        }