From ad8a6bd307bcb9399a19f9100780f52513c8500d Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 16 Jun 2018 21:26:47 +0200 Subject: [PATCH] Fix a Valgrind hit. --- ycbcr_input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ycbcr_input.cpp b/ycbcr_input.cpp index d6cefe6..904180b 100644 --- a/ycbcr_input.cpp +++ b/ycbcr_input.cpp @@ -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)); } -- 2.39.2