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
9b42653b
Commit
9b42653b
authored
May 01, 2012
by
Justin Ruggles
Committed by
Michael Niedermayer
May 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr: update side to back mixing.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7bea0a06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
rematrix.c
libswresample/rematrix.c
+9
-2
No files found.
libswresample/rematrix.c
View file @
9b42653b
...
...
@@ -184,8 +184,15 @@ static int auto_matrix(SwrContext *s)
if
(
unaccounted
&
AV_CH_SIDE_LEFT
){
if
(
s
->
out_ch_layout
&
AV_CH_BACK_LEFT
){
matrix
[
BACK_LEFT
][
SIDE_LEFT
]
+=
1
.
0
;
matrix
[
BACK_RIGHT
][
SIDE_RIGHT
]
+=
1
.
0
;
/* if back channels do not exist in the input, just copy side
channels to back channels, otherwise mix side into back */
if
(
s
->
in_ch_layout
&
AV_CH_BACK_LEFT
)
{
matrix
[
BACK_LEFT
][
SIDE_LEFT
]
+=
M_SQRT1_2
;
matrix
[
BACK_RIGHT
][
SIDE_RIGHT
]
+=
M_SQRT1_2
;
}
else
{
matrix
[
BACK_LEFT
][
SIDE_LEFT
]
+=
1
.
0
;
matrix
[
BACK_RIGHT
][
SIDE_RIGHT
]
+=
1
.
0
;
}
}
else
if
(
s
->
out_ch_layout
&
AV_CH_BACK_CENTER
){
matrix
[
BACK_CENTER
][
SIDE_LEFT
]
+=
M_SQRT1_2
;
matrix
[
BACK_CENTER
][
SIDE_RIGHT
]
+=
M_SQRT1_2
;
...
...
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