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
9ce96a74
Commit
9ce96a74
authored
Dec 26, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_headphone: fix regression after
7c201e42
parent
92ed9316
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
af_headphone.c
libavfilter/af_headphone.c
+4
-4
No files found.
libavfilter/af_headphone.c
View file @
9ce96a74
...
...
@@ -208,12 +208,12 @@ static int headphone_convolute(AVFilterContext *ctx, void *arg, int jobnr, int n
continue
;
}
read
=
(
wr
-
*
(
delay
+
l
)
-
(
a
ir_len
-
1
)
+
buffer_length
)
&
modulo
;
read
=
(
wr
-
*
(
delay
+
l
)
-
(
ir_len
-
1
)
+
buffer_length
)
&
modulo
;
if
(
read
+
a
ir_len
<
buffer_length
)
{
memcpy
(
temp_src
,
bptr
+
read
,
a
ir_len
*
sizeof
(
*
temp_src
));
if
(
read
+
ir_len
<
buffer_length
)
{
memcpy
(
temp_src
,
bptr
+
read
,
ir_len
*
sizeof
(
*
temp_src
));
}
else
{
int
len
=
FFMIN
(
air_len
-
(
read
%
a
ir_len
),
buffer_length
-
read
);
int
len
=
FFMIN
(
air_len
-
(
read
%
ir_len
),
buffer_length
-
read
);
memcpy
(
temp_src
,
bptr
+
read
,
len
*
sizeof
(
*
temp_src
));
memcpy
(
temp_src
+
len
,
bptr
,
(
air_len
-
len
)
*
sizeof
(
*
temp_src
));
...
...
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