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
d8170f00
Commit
d8170f00
authored
Feb 18, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix audio wave for non stereo clips
parent
817e35be
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jobs/audiolevelstask.cpp
View file @
d8170f00
...
...
@@ -110,7 +110,7 @@ void AudioLevelsTask::run()
// convert cached image
int
n
=
image
.
width
()
*
image
.
height
();
for
(
int
i
=
0
;
n
>
1
&&
i
<
n
;
i
++
)
{
QRgb
p
=
image
.
pixel
(
i
/
2
,
i
%
channels
);
QRgb
p
=
image
.
pixel
(
i
/
channels
,
i
%
channels
);
mltLevels
<<
qRed
(
p
);
mltLevels
<<
qGreen
(
p
);
mltLevels
<<
qBlue
(
p
);
...
...
@@ -228,7 +228,7 @@ void AudioLevelsTask::run()
int
a
=
last
;
p
=
qRgba
(
r
,
g
,
b
,
a
);
}
image
.
setPixel
(
i
/
2
,
i
%
channels
,
p
);
image
.
setPixel
(
i
/
channels
,
i
%
channels
,
p
);
}
image
.
save
(
cachePath
);
audioCreated
=
true
;
...
...
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