aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scale.c2
1 files changed, 1 insertions, 1 deletions
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;