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
930ffd46
Commit
930ffd46
authored
Oct 30, 2014
by
Michael Niedermayer
Committed by
Vittorio Giovara
Nov 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacsbr: change order of operation to prevent out of array read
CC: libav-stable@libav.org Bug-Id: CID 732250
parent
9f6f4074
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
aacsbr.c
libavcodec/aacsbr.c
+2
-1
No files found.
libavcodec/aacsbr.c
View file @
930ffd46
...
@@ -549,7 +549,8 @@ static int sbr_hf_calc_npatches(AACContext *ac, SpectralBandReplication *sbr)
...
@@ -549,7 +549,8 @@ static int sbr_hf_calc_npatches(AACContext *ac, SpectralBandReplication *sbr)
k
=
sbr
->
n_master
;
k
=
sbr
->
n_master
;
}
while
(
sb
!=
sbr
->
kx
[
1
]
+
sbr
->
m
[
1
]);
}
while
(
sb
!=
sbr
->
kx
[
1
]
+
sbr
->
m
[
1
]);
if
(
sbr
->
patch_num_subbands
[
sbr
->
num_patches
-
1
]
<
3
&&
sbr
->
num_patches
>
1
)
if
(
sbr
->
num_patches
>
1
&&
sbr
->
patch_num_subbands
[
sbr
->
num_patches
-
1
]
<
3
)
sbr
->
num_patches
--
;
sbr
->
num_patches
--
;
return
0
;
return
0
;
...
...
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