Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
cdce9e80
Commit
cdce9e80
authored
Mar 11, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacsbr: Fix type for index variable
Prevents unsigned overflow and variable truncation. Bug-Id: CID 603186
parent
7c60c124
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
aacsbr.c
libavcodec/aacsbr.c
+3
-3
No files found.
libavcodec/aacsbr.c
View file @
cdce9e80
...
...
@@ -628,7 +628,7 @@ static int read_sbr_grid(AACContext *ac, SpectralBandReplication *sbr,
GetBitContext
*
gb
,
SBRData
*
ch_data
)
{
int
i
;
unsigned
bs_pointer
=
0
;
int
bs_pointer
=
0
;
// frameLengthFlag ? 15 : 16; 960 sample length frames unsupported; this value is numTimeSlots
int
abs_bord_trail
=
16
;
int
num_rel_lead
,
num_rel_trail
;
...
...
@@ -721,7 +721,7 @@ static int read_sbr_grid(AACContext *ac, SpectralBandReplication *sbr,
break
;
}
if
(
bs_pointer
>
ch_data
->
bs_num_env
+
1
)
{
if
(
bs_pointer
<
0
||
bs_pointer
>
ch_data
->
bs_num_env
+
1
)
{
av_log
(
ac
->
avctx
,
AV_LOG_ERROR
,
"Invalid bitstream, bs_pointer points to a middle noise border outside the time borders table: %d
\n
"
,
bs_pointer
);
...
...
@@ -740,7 +740,7 @@ static int read_sbr_grid(AACContext *ac, SpectralBandReplication *sbr,
ch_data
->
t_q
[
0
]
=
ch_data
->
t_env
[
0
];
ch_data
->
t_q
[
ch_data
->
bs_num_noise
]
=
ch_data
->
t_env
[
ch_data
->
bs_num_env
];
if
(
ch_data
->
bs_num_noise
>
1
)
{
unsigned
int
idx
;
int
idx
;
if
(
ch_data
->
bs_frame_class
==
FIXFIX
)
{
idx
=
ch_data
->
bs_num_env
>>
1
;
}
else
if
(
ch_data
->
bs_frame_class
&
1
)
{
// FIXVAR or VARVAR
...
...
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