lua: fix guard against division by 0

This was incorrectly converted from the original C code. Change it to
what the original code used.
This commit is contained in:
wm4 2019-12-23 16:10:06 +01:00
parent d951a7f021
commit 091ee9d770
1 changed files with 1 additions and 1 deletions

View File

@ -645,7 +645,7 @@ function mp.get_osd_size()
par = 1
end
local aspect = 1.0 * w / math.max(h) / par
local aspect = 1.0 * w / math.max(h, 1.0) / par
return w, h, aspect
end