mirror of https://github.com/ericonr/sndio.git
Fix int overflow that causes >12hour files to not properly relocate.
This commit is contained in:
parent
6ad32cca29
commit
258faa30f7
|
@ -832,11 +832,11 @@ dev_mmcloc(int hr, int min, int sec, int fr, int cent, int fps)
|
|||
{
|
||||
long long pos;
|
||||
|
||||
pos = dev_rate * hr * 3600 +
|
||||
dev_rate * min * 60 +
|
||||
dev_rate * sec +
|
||||
dev_rate * fr / fps +
|
||||
dev_rate * cent / (100 * fps);
|
||||
pos = (long long)dev_rate * hr * 3600 +
|
||||
(long long)dev_rate * min * 60 +
|
||||
(long long)dev_rate * sec +
|
||||
(long long)dev_rate * fr / fps +
|
||||
(long long)dev_rate * cent / (100 * fps);
|
||||
if (dev_pos == pos)
|
||||
return;
|
||||
dev_pos = pos;
|
||||
|
|
Loading…
Reference in New Issue