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
7eacd70f
Commit
7eacd70f
authored
Apr 20, 2012
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aac: Handle HE-AACv2 when sniffing a channel order.
parent
dc878b96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
aacdec.c
libavcodec/aacdec.c
+7
-0
No files found.
libavcodec/aacdec.c
View file @
7eacd70f
...
@@ -404,6 +404,13 @@ static int output_configure(AACContext *ac,
...
@@ -404,6 +404,13 @@ static int output_configure(AACContext *ac,
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
}
}
if
(
ac
->
oc
[
1
].
m4ac
.
ps
==
1
&&
channels
==
2
)
{
if
(
layout
==
AV_CH_FRONT_CENTER
)
{
layout
=
AV_CH_FRONT_LEFT
|
AV_CH_FRONT_RIGHT
;
}
else
{
layout
=
0
;
}
}
memcpy
(
ac
->
tag_che_map
,
ac
->
che
,
4
*
MAX_ELEM_ID
*
sizeof
(
ac
->
che
[
0
][
0
]));
memcpy
(
ac
->
tag_che_map
,
ac
->
che
,
4
*
MAX_ELEM_ID
*
sizeof
(
ac
->
che
[
0
][
0
]));
avctx
->
channel_layout
=
ac
->
oc
[
1
].
channel_layout
=
layout
;
avctx
->
channel_layout
=
ac
->
oc
[
1
].
channel_layout
=
layout
;
...
...
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