优化vtt精度
This commit is contained in:
parent
0f89ecc7cc
commit
1e076a166f
|
@ -156,7 +156,7 @@ namespace N_m3u8DL_RE.Common.Entity
|
||||||
var time = 0L + ms;
|
var time = 0L + ms;
|
||||||
for (int i = 0; i < t.Count(); i++)
|
for (int i = 0; i < t.Count(); i++)
|
||||||
{
|
{
|
||||||
time += (int)Math.Pow(60, i) * Convert.ToInt32(t[i]) * 1000;
|
time += (long)Math.Pow(60, i) * Convert.ToInt32(t[i]) * 1000;
|
||||||
}
|
}
|
||||||
return TimeSpan.FromMilliseconds(time);
|
return TimeSpan.FromMilliseconds(time);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue