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
8019e4e3
Commit
8019e4e3
authored
May 26, 2011
by
Koen Vos
Committed by
Jean-Marc Valin
May 26, 2011
Browse files
Fixes the case of PLC before receiving any valid packet
parent
46185626
Changes
1
Hide whitespace changes
Inline
Side-by-side
silk/silk_dec_API.c
View file @
8019e4e3
...
...
@@ -112,7 +112,11 @@ SKP_int silk_Decode(
for
(
n
=
0
;
n
<
decControl
->
nChannelsInternal
;
n
++
)
{
if
(
channel_state
[
n
].
nFramesDecoded
==
0
)
{
SKP_int
fs_kHz_dec
;
if
(
decControl
->
payloadSize_ms
==
10
)
{
if
(
decControl
->
payloadSize_ms
==
0
)
{
/* Assuming packet loss, use 10 ms */
channel_state
[
n
].
nFramesPerPacket
=
1
;
channel_state
[
n
].
nb_subfr
=
2
;
}
else
if
(
decControl
->
payloadSize_ms
==
10
)
{
channel_state
[
n
].
nFramesPerPacket
=
1
;
channel_state
[
n
].
nb_subfr
=
2
;
}
else
if
(
decControl
->
payloadSize_ms
==
20
)
{
...
...
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