mirror of https://github.com/odrling/Aegisub
Originally committed to SVN as r137.
This commit is contained in:
parent
adf7f76d1e
commit
1521268773
|
@ -60,10 +60,10 @@ void FrameRate::AddFrame(int ms) {
|
||||||
// V2 Get Average
|
// V2 Get Average
|
||||||
void FrameRate::CalcAverage() {
|
void FrameRate::CalcAverage() {
|
||||||
|
|
||||||
if (Frame.size() <= 0)
|
if (Frame.size() <= 1)
|
||||||
throw _("No timecodes to average");
|
throw _("No timecodes to average");
|
||||||
|
|
||||||
AverageFrameRate = double(Frame.back()) / Frame.size();
|
AverageFrameRate = double(Frame.back()) / (Frame.size()-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue