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
e1f7881d
Commit
e1f7881d
authored
Jan 01, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
afilter/af_sofalizer: check explicitly other type
parent
f7745ede
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
af_sofalizer.c
libavfilter/af_sofalizer.c
+3
-3
No files found.
libavfilter/af_sofalizer.c
View file @
e1f7881d
...
...
@@ -588,7 +588,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if
(
s
->
type
==
TIME_DOMAIN
)
{
ctx
->
internal
->
execute
(
ctx
,
sofalizer_convolute
,
&
td
,
NULL
,
2
);
}
else
{
}
else
if
(
s
->
type
==
FREQUENCY_DOMAIN
)
{
ctx
->
internal
->
execute
(
ctx
,
sofalizer_fast_convolute
,
&
td
,
NULL
,
2
);
}
emms_c
();
...
...
@@ -825,7 +825,7 @@ static int load_data(AVFilterContext *ctx, int azim, int elev, float radius, int
if
(
s
->
type
==
TIME_DOMAIN
)
{
s
->
ringbuffer
[
0
]
=
av_calloc
(
s
->
buffer_length
,
sizeof
(
float
)
*
nb_input_channels
);
s
->
ringbuffer
[
1
]
=
av_calloc
(
s
->
buffer_length
,
sizeof
(
float
)
*
nb_input_channels
);
}
else
{
}
else
if
(
s
->
type
==
FREQUENCY_DOMAIN
)
{
/* get temporary HRTF memory for L and R channel */
data_hrtf_l
=
av_malloc_array
(
n_fft
,
sizeof
(
*
data_hrtf_l
)
*
n_conv
);
data_hrtf_r
=
av_malloc_array
(
n_fft
,
sizeof
(
*
data_hrtf_r
)
*
n_conv
);
...
...
@@ -876,7 +876,7 @@ static int load_data(AVFilterContext *ctx, int azim, int elev, float radius, int
s
->
data_ir
[
0
][
offset
+
j
]
=
lir
[
ir_samples
-
1
-
j
]
*
gain_lin
;
s
->
data_ir
[
1
][
offset
+
j
]
=
rir
[
ir_samples
-
1
-
j
]
*
gain_lin
;
}
}
else
{
}
else
if
(
s
->
type
==
FREQUENCY_DOMAIN
)
{
memset
(
fft_in_l
,
0
,
n_fft
*
sizeof
(
*
fft_in_l
));
memset
(
fft_in_r
,
0
,
n_fft
*
sizeof
(
*
fft_in_r
));
...
...
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