Small error correction

This commit is contained in:
Stefan Brand 2010-02-12 21:09:03 +01:00
parent e6bbc9ce8d
commit 3c81e9af72

View file

@ -125,7 +125,7 @@ def calculate(input):
# Calculate output resolution # Calculate output resolution
if float(orig_aspect) == 0 or orig_aspect == "": 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 width = _basewidth
height = int(round(_basewidth / float(orig_aspect) / 16) * 16) height = int(round(_basewidth / float(orig_aspect) / 16) * 16)
if (height > _maxheight): if (height > _maxheight):