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)