Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
7e52fcb4
Commit
7e52fcb4
authored
Dec 08, 2009
by
Ludovic Fauvet
Browse files
Timeline: Fix a floating point exception in the timecode generation.
Thanks to Sebastien Rannou who reported the issue.
parent
390a4194
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/GUI/PreviewRuler.cpp
View file @
7e52fcb4
...
...
@@ -197,18 +197,22 @@ void PreviewRuler::updateTimecode( qint64 frames /*= -1*/ )
if
(
m_renderer
->
getLength
()
>
0
)
{
int
fps
=
(
int
)
m_renderer
->
getFps
();
if
(
frames
==
-
1
)
frames
=
m_renderer
->
getCurrentFrame
();
int
h
=
frames
/
fps
/
60
/
60
;
frames
-=
h
*
fps
*
60
*
60
;
if
(
fps
>
0
)
{
if
(
frames
==
-
1
)
frames
=
m_renderer
->
getCurrentFrame
();
int
m
=
frames
/
fps
/
60
;
frames
-=
m
*
fps
*
60
;
int
h
=
frames
/
fps
/
60
/
60
;
frames
-=
h
*
fps
*
60
*
60
;
int
s
=
frames
/
fps
;
frames
-=
s
*
fps
;
int
m
=
frames
/
fps
/
60
;
frames
-=
m
*
fps
*
60
;
emit
timeChanged
(
h
,
m
,
s
,
frames
);
int
s
=
frames
/
fps
;
frames
-=
s
*
fps
;
emit
timeChanged
(
h
,
m
,
s
,
frames
);
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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