Commit e570e792 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Improved clip length precision

parent c52b3d6a
......@@ -105,11 +105,11 @@ void Clip::computeLength()
{
if ( m_parent->getInputType() == Media::File )
{
unsigned int fps = m_parent->getFps();
float fps = m_parent->getFps();
if ( fps < 0.1f )
fps = FPS;
m_length = m_end - m_begin;
m_lengthSeconds = m_length / fps;
m_lengthSeconds = qRound64( (float)m_length / fps );
emit lengthUpdated();
}
else
......
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