From 33b11751213f024e4d19dd85fe406b4ff23ff2a7 Mon Sep 17 00:00:00 2001 From: laggykiller Date: Thu, 4 Jan 2024 15:57:41 +0800 Subject: [PATCH] Limit max fps to original fps at most during conversion --- src/sticker_convert/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sticker_convert/converter.py b/src/sticker_convert/converter.py index 0dbe56a..c5ce6d5 100755 --- a/src/sticker_convert/converter.py +++ b/src/sticker_convert/converter.py @@ -133,7 +133,7 @@ def convert(self) -> tuple[bool, str, Union[None, bytes, str], int]: self.res_w = param[0] self.res_h = param[1] self.quality = param[2] - self.fps = param[3] + self.fps = min(param[3], self.fps_orig) self.color = param[4] self.tmp_f = io.BytesIO()