From cf3ce4348e1396e68ae5c62906c7f744875993ec Mon Sep 17 00:00:00 2001 From: kieran Date: Wed, 6 Nov 2024 13:45:54 +0000 Subject: [PATCH] fix: scale args --- src/scale.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scale.rs b/src/scale.rs index f4893ce..4c9f94b 100644 --- a/src/scale.rs +++ b/src/scale.rs @@ -63,9 +63,9 @@ impl Scaler { (*frame).width, (*frame).height, transmute((*frame).format), - self.width as libc::c_int, - self.height as libc::c_int, - transmute(self.format), + width as libc::c_int, + height as libc::c_int, + transmute(format), SWS_BILINEAR, ptr::null_mut(), ptr::null_mut(),