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
b2212dec
Commit
b2212dec
authored
Dec 24, 2013
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aac: Fix TNS decoding for the 512 sample window family.
parent
e2096e2e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
aacdec.c
libavcodec/aacdec.c
+2
-1
aactab.c
libavcodec/aactab.c
+4
-0
aactab.h
libavcodec/aactab.h
+1
-0
No files found.
libavcodec/aacdec.c
View file @
b2212dec
...
...
@@ -1178,13 +1178,14 @@ static int decode_ics_info(AACContext *ac, IndividualChannelStream *ics,
if
(
aot
==
AOT_ER_AAC_LD
||
aot
==
AOT_ER_AAC_ELD
)
{
ics
->
swb_offset
=
ff_swb_offset_512
[
ac
->
oc
[
1
].
m4ac
.
sampling_index
];
ics
->
num_swb
=
ff_aac_num_swb_512
[
ac
->
oc
[
1
].
m4ac
.
sampling_index
];
ics
->
tns_max_bands
=
ff_tns_max_bands_512
[
ac
->
oc
[
1
].
m4ac
.
sampling_index
];
if
(
!
ics
->
num_swb
||
!
ics
->
swb_offset
)
return
AVERROR_BUG
;
}
else
{
ics
->
swb_offset
=
ff_swb_offset_1024
[
ac
->
oc
[
1
].
m4ac
.
sampling_index
];
ics
->
num_swb
=
ff_aac_num_swb_1024
[
ac
->
oc
[
1
].
m4ac
.
sampling_index
];
ics
->
tns_max_bands
=
ff_tns_max_bands_1024
[
ac
->
oc
[
1
].
m4ac
.
sampling_index
];
}
ics
->
tns_max_bands
=
ff_tns_max_bands_1024
[
ac
->
oc
[
1
].
m4ac
.
sampling_index
];
if
(
aot
!=
AOT_ER_AAC_ELD
)
{
ics
->
predictor_present
=
get_bits1
(
gb
);
ics
->
predictor_reset_group
=
0
;
...
...
libavcodec/aactab.c
View file @
b2212dec
...
...
@@ -1237,6 +1237,10 @@ const uint8_t ff_tns_max_bands_1024[] = {
31
,
31
,
34
,
40
,
42
,
51
,
46
,
46
,
42
,
42
,
42
,
39
,
39
};
const
uint8_t
ff_tns_max_bands_512
[]
=
{
0
,
0
,
0
,
31
,
32
,
37
,
31
,
31
,
0
,
0
,
0
,
0
,
0
};
const
uint8_t
ff_tns_max_bands_128
[]
=
{
9
,
9
,
10
,
14
,
14
,
14
,
14
,
14
,
14
,
14
,
14
,
14
,
14
};
...
...
libavcodec/aactab.h
View file @
b2212dec
...
...
@@ -76,6 +76,7 @@ extern const uint16_t * const ff_swb_offset_512 [13];
extern
const
uint16_t
*
const
ff_swb_offset_128
[
13
];
extern
const
uint8_t
ff_tns_max_bands_1024
[
13
];
extern
const
uint8_t
ff_tns_max_bands_512
[
13
];
extern
const
uint8_t
ff_tns_max_bands_128
[
13
];
#endif
/* AVCODEC_AACTAB_H */
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