This was incorrectly converted from the original C code. Change it to what the original code used.
Showing the changes to player/lua/defaults.lua (1 of 1 file). Show all
Unified · Split
| @@ -645,7 +645,7 @@ function mp.get_osd_size() · 644 unmodified lines | |||
| 645 | par = 1 | 645 | par = 1 |
| 646 | end | 646 | end |
| 647 | 647 | ||
| 648 | local aspect = 1.0 * w / math.max(h) / par | 648 | local aspect = 1.0 * w / math.max(h, 1.0) / par |
| 649 | return w, h, aspect | 649 | return w, h, aspect |
| 650 | end | 650 | end |
| 651 | 651 | ||