Originally committed to SVN as r137.

This commit is contained in:
Fredrik Mellbin 2006-02-23 23:24:35 +00:00
parent adf7f76d1e
commit 1521268773
1 changed files with 2 additions and 2 deletions

View File

@ -60,10 +60,10 @@ void FrameRate::AddFrame(int ms) {
// V2 Get Average
void FrameRate::CalcAverage() {
if (Frame.size() <= 0)
if (Frame.size() <= 1)
throw _("No timecodes to average");
AverageFrameRate = double(Frame.back()) / Frame.size();
AverageFrameRate = double(Frame.back()) / (Frame.size()-1);
}