diff options
author | wm4 <wm4@nowhere> | 2020-03-18 20:19:13 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-03-18 20:19:13 +0100 |
commit | 5a81de59a88f89189d25a44751448622f9139c0d (patch) | |
tree | bc4a949af842398b25d9526a349d68be0a251e9f /demux | |
parent | 26f4f18c0629998a9b91e94722d166866d8b80a3 (diff) | |
download | mpv-5a81de59a88f89189d25a44751448622f9139c0d.tar.bz2 mpv-5a81de59a88f89189d25a44751448622f9139c0d.tar.xz |
m_option: attempt to fix two rounding issues
Since double has a mantissa too small to hold INT64_MAX in full
precision, converting INT64_MAX to double rounds up. Insert some casts
to silence corresponding warnings (as shown by clang 11).
Also, the comparison in multiply_int64() was incorrect (I think...),
because if v==(double)INT64_MAX, then v==(1<<64), which cannot be
represented as int64_t.
There are probably better ways to solve this.
Diffstat (limited to 'demux')
0 files changed, 0 insertions, 0 deletions