18d164a573
Also change the function to return 0 on error, this is a more sensible error value for aspect ratios anyway. Signed-off-by: Marton Balint <cus@passwd.hu>