summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-18 00:19:43 +0100
committerwm4 <wm4@nowhere>2012-11-18 00:25:25 +0100
commit39428525c372e593f042c107e35e38b5409afc07 (patch)
tree4db99961b2674112d5229df4c85462de1b8503cd /DOCS
parentaf8ded53dbe1d1699df51e6fdc9fef4e464b8a7b (diff)
downloadmpv-39428525c372e593f042c107e35e38b5409afc07.tar.bz2
mpv-39428525c372e593f042c107e35e38b5409afc07.tar.xz
m_option: fix braindead --start, --length, --end option parsing bugs
The option type m_option_type_rel_time was completely broken. It interpreted everything starting with a number as percent position. This is because sscanf() semantics are idiotic (trailing string doesn't need to be matched), and due to my own idiocy this was overlooked when testing. Fix by considering sscanf() evil and not using it. (bstr_sscanf() is a straight wrapper around sscanf()). Even if the percent code was fixed, there was another bug: it always interpreted times as negative (starting from end for --start). Fix the basic logic.
Diffstat (limited to 'DOCS')
0 files changed, 0 insertions, 0 deletions