summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-06-15 17:50:41 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:05 +0200
commite1c8069b686bf67d0c2aa6a1527d5b244e170a18 (patch)
tree58371a8938d48043e9c5d2d902b81a18a16bb54d /options/options.c
parentd34550930b208c1b24474a2a25b44fc44ab6dc0a (diff)
downloadmpv-e1c8069b686bf67d0c2aa6a1527d5b244e170a18.tar.bz2
mpv-e1c8069b686bf67d0c2aa6a1527d5b244e170a18.tar.xz
aspect: fix some UB problems in corner cases
--video-margin-ratio-left=0.2 --video-margin-ratio-right=0.9 (added in the the next commit) will set f_w to inf, resulting in some garbage being propagated. Later, the OSD margins are computed from values before various sanity clamping is applied, which makes libass suffer from bullshit values. I'm very sure it's OK and more correct to compute the OSD margins using the later values, but I'm not sure about that.
Diffstat (limited to 'options/options.c')
0 files changed, 0 insertions, 0 deletions