Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
1df441ea
Commit
1df441ea
authored
Jun 13, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vfilter/avf_showcqt: fix 'mixed declarations and code'
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
97c285e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
avf_showcqt.c
libavfilter/avf_showcqt.c
+2
-2
No files found.
libavfilter/avf_showcqt.c
View file @
1df441ea
...
...
@@ -387,6 +387,8 @@ static int plot_cqt(AVFilterLink *inlink)
if
(
!
s
->
spectogram_count
)
{
uint8_t
*
data
=
(
uint8_t
*
)
s
->
outpicref
->
data
[
0
];
float
rcp_result
[
VIDEO_WIDTH
];
int
total_length
=
linesize
*
spectogram_height
;
int
back_length
=
linesize
*
s
->
spectogram_index
;
for
(
x
=
0
;
x
<
video_width
;
x
++
)
rcp_result
[
x
]
=
1
.
0
f
/
(
result
[
x
][
3
]
+
0
.
0001
f
);
...
...
@@ -448,8 +450,6 @@ static int plot_cqt(AVFilterLink *inlink)
}
/* drawing spectogram/sonogram */
int
total_length
=
linesize
*
spectogram_height
;
int
back_length
=
linesize
*
s
->
spectogram_index
;
data
+=
spectogram_start
*
linesize
;
memcpy
(
data
,
s
->
spectogram
+
s
->
spectogram_index
*
linesize
,
total_length
-
back_length
);
...
...
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