mirror of https://github.com/mpv-player/mpv
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:
parent
d951a7f021
commit
091ee9d770
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue