mirror of https://github.com/odrling/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
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue