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
78f4cfea
Commit
78f4cfea
authored
Apr 13, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix in point calculation on speed revert.
BUG: 424582
parent
e85005ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/clipmodel.cpp
View file @
78f4cfea
...
...
@@ -548,9 +548,8 @@ bool ClipModel::useTimewarpProducer(double speed, bool pitchCompensate, bool cha
};
}
if
(
revertSpeed
)
{
int
in
=
getIn
();
int
out
=
getOut
();
in
=
qMax
(
0
,
qRound
((
m_producer
->
get_length
()
-
1
-
out
)
*
std
::
fabs
(
m_speed
/
speed
)
+
0.5
));
int
out
=
getOut
()
+
1
;
int
in
=
qMax
(
0
,
qRound
((
m_producer
->
get_length
()
-
1
-
out
)
*
std
::
fabs
(
m_speed
/
speed
)));
out
=
in
+
newDuration
;
operation
=
[
operation
,
in
,
out
,
this
]()
{
bool
res
=
operation
();
...
...
Write
Preview
Supports
Markdown
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