From: Steinar H. Gunderson Date: Sun, 12 Nov 2017 00:30:01 +0000 (+0100) Subject: Fix some invalid code in DeinterlaceTest; GCC 7 would optimize it into simply an... X-Git-Tag: 1.6.0~75 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=f85e35e129f2395cb03867feb804e5a4badc594e Fix some invalid code in DeinterlaceTest; GCC 7 would optimize it into simply an infinite loop. --- diff --git a/deinterlace_effect_test.cpp b/deinterlace_effect_test.cpp index 31bd363..24e11a2 100644 --- a/deinterlace_effect_test.cpp +++ b/deinterlace_effect_test.cpp @@ -74,7 +74,7 @@ TEST(DeinterlaceTest, VerticalInterpolation) { // Set previous and next fields to something so big that all the temporal checks // are effectively turned off. fill(neg_blowout_data, neg_blowout_data + width * height, -100.0f); - fill(neg_blowout_data, pos_blowout_data + width * height, 100.0f); + fill(pos_blowout_data, pos_blowout_data + width * height, 100.0f); EffectChainTester tester(NULL, width, height * 2); Effect *input1 = tester.add_input(neg_blowout_data, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, width, height);