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
5e239c7f
Commit
5e239c7f
authored
Feb 23, 2012
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacdec: Remove erroneous reference to global gain from the out of bounds scalefactor error message.
parent
d10319d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
aacdec.c
libavcodec/aacdec.c
+1
-2
No files found.
libavcodec/aacdec.c
View file @
5e239c7f
...
...
@@ -1016,7 +1016,6 @@ static int decode_scalefactors(AACContext *ac, float sf[120], GetBitContext *gb,
int
offset
[
3
]
=
{
global_gain
,
global_gain
-
90
,
0
};
int
clipped_offset
;
int
noise_flag
=
1
;
static
const
char
*
const
sf_str
[
3
]
=
{
"Global gain"
,
"Noise gain"
,
"Intensity stereo position"
};
for
(
g
=
0
;
g
<
ics
->
num_window_groups
;
g
++
)
{
for
(
i
=
0
;
i
<
ics
->
max_sfb
;)
{
int
run_end
=
band_type_run_end
[
idx
];
...
...
@@ -1055,7 +1054,7 @@ static int decode_scalefactors(AACContext *ac, float sf[120], GetBitContext *gb,
offset
[
0
]
+=
get_vlc2
(
gb
,
vlc_scalefactors
.
table
,
7
,
3
)
-
60
;
if
(
offset
[
0
]
>
255U
)
{
av_log
(
ac
->
avctx
,
AV_LOG_ERROR
,
"
%s (%d) out of range.
\n
"
,
sf_str
[
0
]
,
offset
[
0
]);
"
Scalefactor (%d) out of range.
\n
"
,
offset
[
0
]);
return
-
1
;
}
sf
[
idx
]
=
-
ff_aac_pow2sf_tab
[
offset
[
0
]
-
100
+
POW_SF2_ZERO
];
...
...
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