Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c56a5685
Commit
c56a5685
authored
May 02, 2014
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fdkaac: set channel configuration
parent
f53e858b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
modules/codec/fdkaac.c
modules/codec/fdkaac.c
+17
-7
No files found.
modules/codec/fdkaac.c
View file @
c56a5685
...
...
@@ -221,20 +221,30 @@ static int OpenEncoder( vlc_object_t *p_this )
i_profile
=
PROFILE_AAC_HE_v2
;
}
uint16_t
channel_config
;
switch
(
p_enc
->
fmt_in
.
audio
.
i_channels
)
{
case
1
:
mode
=
MODE_1
;
sce
=
1
;
cpe
=
0
;
break
;
case
2
:
mode
=
MODE_2
;
sce
=
0
;
cpe
=
1
;
break
;
case
3
:
mode
=
MODE_1_2
;
sce
=
1
;
cpe
=
1
;
break
;
case
4
:
mode
=
MODE_1_2_1
;
sce
=
2
;
cpe
=
1
;
break
;
case
5
:
mode
=
MODE_1_2_2
;
sce
=
1
;
cpe
=
2
;
break
;
case
6
:
mode
=
MODE_1_2_2_1
;
sce
=
2
;
cpe
=
2
;
break
;
case
8
:
mode
=
MODE_1_2_2_2_1
;
sce
=
2
;
cpe
=
3
;
break
;
case
1
:
mode
=
MODE_1
;
sce
=
1
;
cpe
=
0
;
channel_config
=
AOUT_CHAN_CENTER
;
break
;
case
2
:
mode
=
MODE_2
;
sce
=
0
;
cpe
=
1
;
channel_config
=
AOUT_CHANS_STEREO
;
break
;
case
3
:
mode
=
MODE_1_2
;
sce
=
1
;
cpe
=
1
;
channel_config
=
AOUT_CHANS_3_0
;
break
;
case
4
:
mode
=
MODE_1_2_1
;
sce
=
2
;
cpe
=
1
;
channel_config
=
AOUT_CHANS_4_CENTER_REAR
;
break
;
case
5
:
mode
=
MODE_1_2_2
;
sce
=
1
;
cpe
=
2
;
channel_config
=
AOUT_CHANS_5_0
;
break
;
case
6
:
mode
=
MODE_1_2_2_1
;
sce
=
2
;
cpe
=
2
;
channel_config
=
AOUT_CHANS_5_1
;
break
;
case
8
:
mode
=
MODE_1_2_2_2_1
;
sce
=
2
;
cpe
=
3
;
channel_config
=
AOUT_CHANS_7_1
;
break
;
default:
msg_Err
(
p_enc
,
"we do not support > 8 input channels, this input has %i"
,
p_enc
->
fmt_in
.
audio
.
i_channels
);
return
VLC_EGENERIC
;
}
p_enc
->
fmt_in
.
audio
.
i_physical_channels
=
channel_config
;
msg_Info
(
p_enc
,
"Initializing AAC Encoder, %i channels"
,
p_enc
->
fmt_in
.
audio
.
i_channels
);
/* Allocate the memory needed to store the encoder's structure */
...
...
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