This was incorrectly converted from the original C code. Change it to what the original code used.
Unified · Split
| @@ -645,7 +645,7 @@ function mp.get_osd_size() · 644 unmodified lines | ||
| 645 | 645 | par = 1 |
| 646 | 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 | 649 | return w, h, aspect |
| 650 | 650 | end |
| 651 | 651 | |