Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
5d7b0366
Commit
5d7b0366
authored
Jul 25, 2011
by
Jean-Marc Valin
Browse files
Prevents more than 10 LSBs from being decoded
parent
59a93ab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
silk/silk_decode_pulses.c
View file @
5d7b0366
...
...
@@ -67,7 +67,9 @@ void silk_decode_pulses(
/* LSB indication */
while
(
sum_pulses
[
i
]
==
MAX_PULSES
+
1
)
{
nLshifts
[
i
]
++
;
sum_pulses
[
i
]
=
ec_dec_icdf
(
psRangeDec
,
silk_pulses_per_block_iCDF
[
N_RATE_LEVELS
-
1
],
8
);
/* When we've already got 10 LSBs, we shift the table to not allow (MAX_PULSES + 1) */
sum_pulses
[
i
]
=
ec_dec_icdf
(
psRangeDec
,
silk_pulses_per_block_iCDF
[
N_RATE_LEVELS
-
1
]
+
(
nLshifts
[
i
]
==
10
),
8
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment