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
edd9ea3f
Commit
edd9ea3f
authored
Jan 22, 2015
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacdec: Refactor aac_er_decode_frame.
parent
82bd8a57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
aacdec.c
libavcodec/aacdec.c
+5
-4
No files found.
libavcodec/aacdec.c
View file @
edd9ea3f
...
...
@@ -2703,11 +2703,12 @@ static int aac_decode_er_frame(AVCodecContext *avctx, void *data,
int
*
got_frame_ptr
,
GetBitContext
*
gb
)
{
AACContext
*
ac
=
avctx
->
priv_data
;
const
MPEG4AudioConfig
*
const
m4ac
=
&
ac
->
oc
[
1
].
m4ac
;
ChannelElement
*
che
;
int
err
,
i
;
int
samples
=
1024
;
int
chan_config
=
ac
->
oc
[
1
].
m4ac
.
chan_config
;
int
aot
=
ac
->
oc
[
1
].
m4ac
.
object_type
;
int
chan_config
=
m4ac
->
chan_config
;
int
aot
=
m4ac
->
object_type
;
if
(
aot
==
AOT_ER_AAC_LD
||
aot
==
AOT_ER_AAC_ELD
)
samples
>>=
1
;
...
...
@@ -2719,13 +2720,13 @@ static int aac_decode_er_frame(AVCodecContext *avctx, void *data,
// The FF_PROFILE_AAC_* defines are all object_type - 1
// This may lead to an undefined profile being signaled
ac
->
avctx
->
profile
=
a
c
->
oc
[
1
].
m4ac
.
object_type
-
1
;
ac
->
avctx
->
profile
=
a
ot
-
1
;
ac
->
tags_mapped
=
0
;
if
(
chan_config
<
0
||
chan_config
>=
8
)
{
avpriv_request_sample
(
avctx
,
"Unknown ER channel configuration %d"
,
ac
->
oc
[
1
].
m4ac
.
chan_config
);
chan_config
);
return
AVERROR_INVALIDDATA
;
}
for
(
i
=
0
;
i
<
tags_per_config
[
chan_config
];
i
++
)
{
...
...
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