From 3c81e9af72c615ef3b8e80de5ab9e6d5f4af9cd1 Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Fri, 12 Feb 2010 21:09:03 +0100 Subject: [PATCH] Small error correction --- n900-encode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/n900-encode.py b/n900-encode.py index e4cea00..c3e5cd6 100755 --- a/n900-encode.py +++ b/n900-encode.py @@ -125,7 +125,7 @@ def calculate(input): # Calculate output resolution if float(orig_aspect) == 0 or orig_aspect == "": - orig_aspect == float(orig_width)/float(orig_height) + orig_aspect = float(orig_width)/float(orig_height) width = _basewidth height = int(round(_basewidth / float(orig_aspect) / 16) * 16) if (height > _maxheight):