]> granicus.if.org Git - libass/commit
Fix PlayResX/Y calculations
authorGrigori Goronzy <greg@chown.ath.cx>
Wed, 10 May 2017 11:39:57 +0000 (13:39 +0200)
committerGrigori Goronzy <greg@chown.ath.cx>
Wed, 10 May 2017 11:45:31 +0000 (13:45 +0200)
commit4cf8d6bb3e6b75f8215b69f697b6b5c05b1c1dd2
tree9943559c94bf98cc1c4529cf3de8751de549b93b
parentf2832a0134a953dd7cef02e7c741bcaffdde4974
Fix PlayResX/Y calculations

Avoid that PlayResY is set to 0 when only PlayResX is specified and
set to 1. Setting PlayResY to 0 results in divide-by-zero errors.
Also fix PlayResX calculations in case only PlayResY is specified,
for completeness.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1474.
libass/ass.c