History

lua: fix guard against division by 0

This was incorrectly converted from the original C code. Change it to what the original code used.

wm4 committed 6 years ago

Commit 091ee9d1 parent d951a7f1 file · +1 −1Browse files

Unified · Split

player/lua/defaults.lua+1−1
@@ -645,7 +645,7 @@ function mp.get_osd_size() · 644 unmodified lines
645 par = 1645 par = 1
646 end646 end
647 647
648 local aspect = 1.0 * w / math.max(h) / par648 local aspect = 1.0 * w / math.max(h, 1.0) / par
649 return w, h, aspect649 return w, h, aspect
650end650end
651 651

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t