mirror of
https://github.com/leiurayer/downkyi.git
synced 2026-10-21 05:53:53 +00:00
解决当视频时长>60分钟后,弹幕的时间有误导致弹幕卡住的问题
This commit is contained in:
@@ -62,6 +62,7 @@ namespace DownKyi.Core.Danmaku2Ass
|
||||
int second = (int)(i % 60.0f);
|
||||
|
||||
int hour = (int)Math.Floor(min / 60.0);
|
||||
min = (int)Math.Floor(min % 60.0f);
|
||||
|
||||
return $"{hour:D}:{min:D2}:{second:D2}.{dec:D2}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user