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:
Niels Martin Hansen 2008-07-18 20:43:07 +00:00
parent 270ca4f876
commit 94011adf93
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ wxString AssTime::GetSRTFormated () {
// SMPTE formatted // SMPTE formatted
wxString AssTime::GetSMPTE(double fps) 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); return wxString::Format(_T("%02i:%02i:%02i:%02i"),GetTimeHours(),GetTimeMinutes(),GetTimeSeconds(),f);
} }