diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2020-12-02 12:39:57 +0200 |
---|---|---|
committer | avih <avih@users.noreply.github.com> | 2020-12-02 17:06:11 +0200 |
commit | 84d0930fa1489868ef3034b5ae18ba760b1a2db9 (patch) | |
tree | dbc4b6c61fd8a9574cc604a9501cbd65a68c7900 /audio/out/ao_coreaudio_utils.h | |
parent | da48bb6709b83b2cc7ba4aa370fb4ef0daf24ae7 (diff) | |
download | mpv-84d0930fa1489868ef3034b5ae18ba760b1a2db9.tar.bz2 mpv-84d0930fa1489868ef3034b5ae18ba760b1a2db9.tar.xz |
vo_sixel: don't divide by zero on small terminal
Our canvas size calculation is affected by few factors, and rounded
down more than once - which can result in 0 width or (more typically)
height - e.g. when terminal height is one row.
If the width or height are 0 then all bets are off, so simply skip
the setups and rendering on this case. We can still recover
automatically if the terminal is resized to become bigger.
Diffstat (limited to 'audio/out/ao_coreaudio_utils.h')
0 files changed, 0 insertions, 0 deletions