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
b9a61068
Commit
b9a61068
authored
Jul 06, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_afftfilt: remove invalid scaling
parent
feade2b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
af_afftfilt.c
libavfilter/af_afftfilt.c
+2
-7
No files found.
libavfilter/af_afftfilt.c
View file @
b9a61068
...
...
@@ -49,7 +49,6 @@ typedef struct AFFTFiltContext {
AVFrame
*
buffer
;
int
eof
;
int
win_func
;
float
win_scale
;
float
*
window_func_lut
;
}
AFFTFiltContext
;
...
...
@@ -138,7 +137,7 @@ static int config_input(AVFilterLink *inlink)
AVFilterContext
*
ctx
=
inlink
->
dst
;
AFFTFiltContext
*
s
=
ctx
->
priv
;
char
*
saveptr
=
NULL
;
int
ret
=
0
,
ch
,
i
;
int
ret
=
0
,
ch
;
float
overlap
;
char
*
args
;
const
char
*
last_expr
=
"1"
;
...
...
@@ -226,10 +225,6 @@ static int config_input(AVFilterLink *inlink)
if
(
s
->
overlap
==
1
)
s
->
overlap
=
overlap
;
for
(
s
->
win_scale
=
0
,
i
=
0
;
i
<
s
->
window_size
;
i
++
)
{
s
->
win_scale
+=
s
->
window_func_lut
[
i
]
*
s
->
window_func_lut
[
i
];
}
s
->
hop_size
=
s
->
window_size
*
(
1
-
s
->
overlap
);
if
(
s
->
hop_size
<=
0
)
return
AVERROR
(
EINVAL
);
...
...
@@ -247,7 +242,7 @@ static int filter_frame(AVFilterLink *inlink)
AVFilterLink
*
outlink
=
ctx
->
outputs
[
0
];
AFFTFiltContext
*
s
=
ctx
->
priv
;
const
int
window_size
=
s
->
window_size
;
const
float
f
=
1
.
/
s
->
win_scale
;
const
float
f
=
1
.
/
(
s
->
window_size
/
2
)
;
double
values
[
VAR_VARS_NB
];
AVFrame
*
out
,
*
in
=
NULL
;
int
ch
,
n
,
ret
,
i
;
...
...
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