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
2309923c
Commit
2309923c
authored
Sep 28, 2009
by
Robert Swain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent after last commit
Originally committed as revision 20068 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e22da6b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
aac.c
libavcodec/aac.c
+21
-21
No files found.
libavcodec/aac.c
View file @
2309923c
...
...
@@ -190,30 +190,30 @@ static int output_configure(AACContext *ac,
avctx
->
channel_layout
=
aac_channel_layout
[
channel_config
-
1
];
}
else
{
/* Allocate or free elements depending on if they are in the
* current program configuration.
*
* Set up default 1:1 output mapping.
*
* For a 5.1 stream the output order will be:
* [ Center ] [ Front Left ] [ Front Right ] [ LFE ] [ Surround Left ] [ Surround Right ]
*/
/* Allocate or free elements depending on if they are in the
* current program configuration.
*
* Set up default 1:1 output mapping.
*
* For a 5.1 stream the output order will be:
* [ Center ] [ Front Left ] [ Front Right ] [ LFE ] [ Surround Left ] [ Surround Right ]
*/
for
(
i
=
0
;
i
<
MAX_ELEM_ID
;
i
++
)
{
for
(
type
=
0
;
type
<
4
;
type
++
)
{
if
(
che_pos
[
type
][
i
])
{
if
(
!
ac
->
che
[
type
][
i
]
&&
!
(
ac
->
che
[
type
][
i
]
=
av_mallocz
(
sizeof
(
ChannelElement
))))
return
AVERROR
(
ENOMEM
);
if
(
type
!=
TYPE_CCE
)
{
ac
->
output_data
[
channels
++
]
=
ac
->
che
[
type
][
i
]
->
ch
[
0
].
ret
;
if
(
type
==
TYPE_CPE
)
{
ac
->
output_data
[
channels
++
]
=
ac
->
che
[
type
][
i
]
->
ch
[
1
].
ret
;
for
(
i
=
0
;
i
<
MAX_ELEM_ID
;
i
++
)
{
for
(
type
=
0
;
type
<
4
;
type
++
)
{
if
(
che_pos
[
type
][
i
])
{
if
(
!
ac
->
che
[
type
][
i
]
&&
!
(
ac
->
che
[
type
][
i
]
=
av_mallocz
(
sizeof
(
ChannelElement
))))
return
AVERROR
(
ENOMEM
);
if
(
type
!=
TYPE_CCE
)
{
ac
->
output_data
[
channels
++
]
=
ac
->
che
[
type
][
i
]
->
ch
[
0
].
ret
;
if
(
type
==
TYPE_CPE
)
{
ac
->
output_data
[
channels
++
]
=
ac
->
che
[
type
][
i
]
->
ch
[
1
].
ret
;
}
}
}
}
else
av_freep
(
&
ac
->
che
[
type
][
i
]);
}
else
av_freep
(
&
ac
->
che
[
type
][
i
]);
}
}
}
memcpy
(
ac
->
tag_che_map
,
ac
->
che
,
4
*
MAX_ELEM_ID
*
sizeof
(
ac
->
che
[
0
][
0
]));
ac
->
tags_mapped
=
4
*
MAX_ELEM_ID
;
...
...
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