modplug: avoid division by zero
authorJonathan Matthew <jonathan@d14n.org>
Thu, 27 Aug 2020 21:53:26 +0000 (07:53 +1000)
committerJonathan Matthew <jonathan@d14n.org>
Thu, 27 Aug 2020 22:10:04 +0000 (08:10 +1000)
commit2b024ec1b4cbed31678bbb8da3ef0f8145f9953e
treefc40e25c81342f91c2d3de2c3be51c04e011edf5
parent04fd705906f4bd4cf1901001484e60c21e1b3139
modplug: avoid division by zero

Under some conditions, GetMaxPosition() returns zero, which should cause
position queries to fail rather than crash.
ext/modplug/gstmodplug.cc