Commit 4b7f91db authored by Julius Künzel's avatar Julius Künzel
Browse files

Fix timecode rounding for fps like 23.98

BUG: 435213
parent 73e3994f
......@@ -149,7 +149,7 @@ int Timecode::getFrameCount(const QString &duration) const
(m_dropFrames * (totalMinutes - floor(totalMinutes / 10)));
return frameNumber;
}
return (int)((hours * 3600.0 + minutes * 60.0 + seconds) * m_realFps + frames);
return qRound((hours * 3600.0 + minutes * 60.0 + seconds) * m_realFps + frames);
}
QString Timecode::getDisplayTimecode(const GenTime &time, bool frameDisplay) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment