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
d39fae08
Commit
d39fae08
authored
Oct 04, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/avf_showspectrum: fix scaling in zoom mode
parent
196dd13c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
avf_showspectrum.c
libavfilter/avf_showspectrum.c
+3
-3
No files found.
libavfilter/avf_showspectrum.c
View file @
d39fae08
...
@@ -340,12 +340,12 @@ static int run_channel_fft(AVFilterContext *ctx, void *arg, int jobnr, int nb_jo
...
@@ -340,12 +340,12 @@ static int run_channel_fft(AVFilterContext *ctx, void *arg, int jobnr, int nb_jo
FFTComplex
*
h
=
s
->
fft_scratch
[
ch
];
FFTComplex
*
h
=
s
->
fft_scratch
[
ch
];
int
L
=
s
->
buf_size
;
int
L
=
s
->
buf_size
;
int
N
=
s
->
win_size
;
int
N
=
s
->
win_size
;
int
M
=
s
->
win_size
;
int
M
=
s
->
win_size
/
2
;
phi
=
2
.
0
*
M_PI
*
(
s
->
stop
-
s
->
start
)
/
(
double
)
inlink
->
sample_rate
/
(
s
->
win_size
-
1
);
phi
=
2
.
0
*
M_PI
*
(
s
->
stop
-
s
->
start
)
/
(
double
)
inlink
->
sample_rate
/
(
M
-
1
);
theta
=
2
.
0
*
M_PI
*
s
->
start
/
(
double
)
inlink
->
sample_rate
;
theta
=
2
.
0
*
M_PI
*
s
->
start
/
(
double
)
inlink
->
sample_rate
;
for
(
int
n
=
0
;
n
<
s
->
win_size
;
n
++
)
{
for
(
int
n
=
0
;
n
<
M
;
n
++
)
{
h
[
n
].
re
=
cos
(
n
*
n
/
2
.
0
*
phi
);
h
[
n
].
re
=
cos
(
n
*
n
/
2
.
0
*
phi
);
h
[
n
].
im
=
sin
(
n
*
n
/
2
.
0
*
phi
);
h
[
n
].
im
=
sin
(
n
*
n
/
2
.
0
*
phi
);
}
}
...
...
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