From a2910e9de26676553a3360dd1d7bdb75ac9b0487 Mon Sep 17 00:00:00 2001 From: neonloop Date: Sat, 16 Dec 2023 16:41:46 +0000 Subject: Fixes incorrect variable for h break point --- scale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scale.c b/scale.c index 682b6c1..842e4ae 100644 --- a/scale.c +++ b/scale.c @@ -536,7 +536,7 @@ static void scale_select_scaler(unsigned w, unsigned h, size_t pitch) { blend_args.h_ratio_in = h / gcd_h; blend_args.h_ratio_out = dst_h / gcd_h; - div_h = (blend_args.w_ratio_out + 2) / 5; /* rounded integer divide by 5 */ + div_h = (blend_args.h_ratio_out + 2) / 5; /* rounded integer divide by 5 */ blend_args.h_bp[0] = div_h; blend_args.h_bp[1] = blend_args.h_ratio_out >> 1; -- cgit v1.2.3