Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
4b7f91db
Commit
4b7f91db
authored
Mar 21, 2022
by
Julius Künzel
Browse files
Fix timecode rounding for fps like 23.98
BUG: 435213
parent
73e3994f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/utils/timecode.cpp
View file @
4b7f91db
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment