summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-12 16:04:26 +0100
committerwm4 <wm4@nowhere>2016-02-12 16:04:26 +0100
commit1cfcc1e1d5831d73eaf20a942e800b89bc7598b5 (patch)
treea403eaec4d6b9796c6ddc0fddf1d91fbc71672c4 /player/video.c
parent0b427c54adad8c776bad8bdb0fd244fccc625c68 (diff)
downloadmpv-1cfcc1e1d5831d73eaf20a942e800b89bc7598b5.tar.bz2
mpv-1cfcc1e1d5831d73eaf20a942e800b89bc7598b5.tar.xz
mp_image: force display size to at least 1x1
Don't allow rounding to let it underflow to 0. 0 width or height is simply not allowed and could cause problems otherwhere. Indirectly fixes CID 1350057, which complains about not checking the resulting output size values before using it in divisions.
Diffstat (limited to 'player/video.c')
0 files changed, 0 insertions, 0 deletions