forked from mia/Aegisub
Fix SMPTE timecode formatting, never round frame up to avoid things like frame 30 in a second in a 30 fps movie, where frame numbers go from 0 to 29.
Originally committed to SVN as r2268.
This commit is contained in:
parent
270ca4f876
commit
94011adf93
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ wxString AssTime::GetSRTFormated () {
|
|||
// SMPTE formatted
|
||||
wxString AssTime::GetSMPTE(double fps)
|
||||
{
|
||||
int f = int(GetTimeMiliseconds() * fps / 1000.0 + 0.5);
|
||||
int f = int(GetTimeMiliseconds() * fps / 1000.0);
|
||||
return wxString::Format(_T("%02i:%02i:%02i:%02i"),GetTimeHours(),GetTimeMinutes(),GetTimeSeconds(),f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue