forked from mia/Aegisub
Originally committed to SVN as r152.
This commit is contained in:
parent
cc4ea8e9ea
commit
c2225dfdf9
1 changed files with 3 additions and 3 deletions
|
@ -131,12 +131,12 @@ int FrameRate::PTimeAtFrame(int frame) {
|
||||||
wxASSERT(frame >= 0);
|
wxASSERT(frame >= 0);
|
||||||
|
|
||||||
if (FrameRateType == CFR) {
|
if (FrameRateType == CFR) {
|
||||||
return floor(double(frame) / AverageFrameRate * 1000);
|
return floor(double(frame) / AverageFrameRate * 1000.0);
|
||||||
} else if (FrameRateType == VFR) {
|
} else if (FrameRateType == VFR) {
|
||||||
if (frame < last_frame)
|
if (frame < last_frame)
|
||||||
return Frame.at(frame);
|
return Frame.at(frame);
|
||||||
else
|
else
|
||||||
return floor(last_time + double(frame-last_frame) / AverageFrameRate * 1000);
|
return floor(last_time + double(frame-last_frame) / AverageFrameRate * 1000.0);
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -347,7 +347,7 @@ void FrameRate::SetVFR(std::vector<int> newTimes) {
|
||||||
// otherwise for start frames
|
// otherwise for start frames
|
||||||
int FrameRate::GetFrameAtTime(int ms,bool start) {
|
int FrameRate::GetFrameAtTime(int ms,bool start) {
|
||||||
if (start)
|
if (start)
|
||||||
return PFrameAtTime(ms) + 1;
|
return PFrameAtTime(ms+10);
|
||||||
else
|
else
|
||||||
return PFrameAtTime(ms);
|
return PFrameAtTime(ms);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue