Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Traud
Opus
Commits
dcb28521
Commit
dcb28521
authored
14 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
Fixes uninitialised memory issues
parent
e99896eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src_FIX/SKP_Silk_find_pitch_lags_FIX.c
+5
-0
5 additions, 0 deletions
src_FIX/SKP_Silk_find_pitch_lags_FIX.c
src_FLP/SKP_Silk_find_pitch_lags_FLP.c
+5
-0
5 additions, 0 deletions
src_FLP/SKP_Silk_find_pitch_lags_FLP.c
src_FLP/SKP_Silk_wrappers_FLP.c
+4
-3
4 additions, 3 deletions
src_FLP/SKP_Silk_wrappers_FLP.c
with
14 additions
and
3 deletions
src_FIX/SKP_Silk_find_pitch_lags_FIX.c
+
5
−
0
View file @
dcb28521
...
...
@@ -128,5 +128,10 @@ void SKP_Silk_find_pitch_lags_FIX(
}
else
{
psEncCtrl
->
sCmn
.
signalType
=
TYPE_UNVOICED
;
}
}
else
{
SKP_memset
(
psEncCtrl
->
sCmn
.
pitchL
,
0
,
sizeof
(
psEncCtrl
->
sCmn
.
pitchL
)
);
psEncCtrl
->
sCmn
.
lagIndex
=
0
;
psEncCtrl
->
sCmn
.
contourIndex
=
0
;
psEnc
->
LTPCorr_Q15
=
0
;
}
}
This diff is collapsed.
Click to expand it.
src_FLP/SKP_Silk_find_pitch_lags_FLP.c
+
5
−
0
View file @
dcb28521
...
...
@@ -120,5 +120,10 @@ void SKP_Silk_find_pitch_lags_FLP(
}
else
{
psEncCtrl
->
sCmn
.
signalType
=
TYPE_UNVOICED
;
}
}
else
{
SKP_memset
(
psEncCtrl
->
sCmn
.
pitchL
,
0
,
sizeof
(
psEncCtrl
->
sCmn
.
pitchL
)
);
psEncCtrl
->
sCmn
.
lagIndex
=
0
;
psEncCtrl
->
sCmn
.
contourIndex
=
0
;
psEnc
->
LTPCorr
=
0
;
}
}
This diff is collapsed.
Click to expand it.
src_FLP/SKP_Silk_wrappers_FLP.c
+
4
−
3
View file @
dcb28521
...
...
@@ -163,7 +163,6 @@ void SKP_Silk_NSQ_wrapper_FLP(
SKP_int
i
,
j
;
SKP_float
tmp_float
;
SKP_int16
x_16
[
MAX_FRAME_LENGTH
];
/* Prediction and coding parameters */
SKP_int32
Gains_Q16
[
MAX_NB_SUBFR
];
SKP_DWORD_ALIGN
SKP_int16
PredCoef_Q12
[
2
][
MAX_LPC_ORDER
];
SKP_int16
LTPCoef_Q14
[
LTP_ORDER
*
MAX_NB_SUBFR
];
...
...
@@ -179,8 +178,10 @@ void SKP_Silk_NSQ_wrapper_FLP(
/* Convert control struct to fix control struct */
/* Noise shape parameters */
for
(
i
=
0
;
i
<
MAX_NB_SUBFR
*
MAX_SHAPE_LPC_ORDER
;
i
++
)
{
AR2_Q13
[
i
]
=
SKP_float2int
(
psEncCtrl
->
AR2
[
i
]
*
8192
.
0
f
);
for
(
i
=
0
;
i
<
MAX_NB_SUBFR
;
i
++
)
{
for
(
j
=
0
;
j
<
psEnc
->
sCmn
.
shapingLPCOrder
;
j
++
)
{
AR2_Q13
[
i
*
MAX_SHAPE_LPC_ORDER
+
j
]
=
SKP_float2int
(
psEncCtrl
->
AR2
[
i
*
MAX_SHAPE_LPC_ORDER
+
j
]
*
8192
.
0
f
);
}
}
for
(
i
=
0
;
i
<
MAX_NB_SUBFR
;
i
++
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment