Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
9b42653b
Commit
9b42653b
authored
12 years ago
by
Justin Ruggles
Committed by
Michael Niedermayer
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
swr: update side to back mixing.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7bea0a06
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libswresample/rematrix.c
+9
-2
9 additions, 2 deletions
libswresample/rematrix.c
with
9 additions
and
2 deletions
libswresample/rematrix.c
+
9
−
2
View file @
9b42653b
...
@@ -184,8 +184,15 @@ static int auto_matrix(SwrContext *s)
...
@@ -184,8 +184,15 @@ static int auto_matrix(SwrContext *s)
if
(
unaccounted
&
AV_CH_SIDE_LEFT
){
if
(
unaccounted
&
AV_CH_SIDE_LEFT
){
if
(
s
->
out_ch_layout
&
AV_CH_BACK_LEFT
){
if
(
s
->
out_ch_layout
&
AV_CH_BACK_LEFT
){
matrix
[
BACK_LEFT
][
SIDE_LEFT
]
+=
1
.
0
;
/* if back channels do not exist in the input, just copy side
matrix
[
BACK_RIGHT
][
SIDE_RIGHT
]
+=
1
.
0
;
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
){
}
else
if
(
s
->
out_ch_layout
&
AV_CH_BACK_CENTER
){
matrix
[
BACK_CENTER
][
SIDE_LEFT
]
+=
M_SQRT1_2
;
matrix
[
BACK_CENTER
][
SIDE_LEFT
]
+=
M_SQRT1_2
;
matrix
[
BACK_CENTER
][
SIDE_RIGHT
]
+=
M_SQRT1_2
;
matrix
[
BACK_CENTER
][
SIDE_RIGHT
]
+=
M_SQRT1_2
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment