From 24e546cff8646d80377d16b670aa9a5904a11bc9 Mon Sep 17 00:00:00 2001 From: OV2 Date: Tue, 27 Feb 2018 21:40:11 +0100 Subject: [PATCH] Fix xBRZ compile with older gcc --- filter/xbrz_tools.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/filter/xbrz_tools.h b/filter/xbrz_tools.h index 574de314..df7134b3 100644 --- a/filter/xbrz_tools.h +++ b/filter/xbrz_tools.h @@ -201,8 +201,12 @@ void bilinearScale(const uint32_t* src, int srcWidth, int srcHeight, int srcPitc const double xx1 = x / scaleX - x1; const double x2x = 1 - xx1; - - buf[x] = { x1, x2, xx1, x2x }; + CoeffsX tmp; + tmp.x1 = x1; + tmp.x2 = x2; + tmp.xx1 = xx1; + tmp.x2x = x2x; + buf[x] = tmp; } for (int y = yFirst; y < yLast; ++y)