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
8daf04ad
Commit
8daf04ad
authored
Oct 20, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacdec: support chan config =1 stereo files
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d0492578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
aacdec.c
libavcodec/aacdec.c
+9
-0
No files found.
libavcodec/aacdec.c
View file @
8daf04ad
...
...
@@ -2137,6 +2137,15 @@ static int aac_decode_frame_int(AVCodecContext *avctx, void *data,
elem_id
=
get_bits
(
gb
,
4
);
if
(
elem_type
<
TYPE_DSE
)
{
if
(
!
ac
->
tags_mapped
&&
elem_type
==
TYPE_CPE
&&
ac
->
m4ac
.
chan_config
==
1
)
{
enum
ChannelPosition
new_che_pos
[
4
][
MAX_ELEM_ID
]
=
{
0
};
ac
->
m4ac
.
chan_config
=
2
;
if
(
set_default_channel_config
(
ac
->
avctx
,
new_che_pos
,
2
)
<
0
)
return
-
1
;
if
(
output_configure
(
ac
,
ac
->
che_pos
,
new_che_pos
,
2
,
OC_TRIAL_FRAME
)
<
0
)
return
-
1
;
}
if
(
!
(
che
=
get_che
(
ac
,
elem_type
,
elem_id
)))
{
av_log
(
ac
->
avctx
,
AV_LOG_ERROR
,
"channel element %d.%d is not allocated
\n
"
,
elem_type
,
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