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
ef7095cd
Commit
ef7095cd
authored
Jul 05, 2011
by
Jean-Marc Valin
Browse files
More decoder corner case fixes
parent
a0653ed1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/opus_decoder.c
View file @
ef7095cd
...
...
@@ -328,6 +328,7 @@ static int opus_decode_frame(OpusDecoder *st, const unsigned char *data,
/* 5 ms redundant frame for CELT->SILK*/
if
(
redundancy
&&
celt_to_silk
)
{
celt_decoder_ctl
(
celt_dec
,
CELT_SET_START_BAND
(
0
));
celt_decode
(
celt_dec
,
data
+
len
,
redundancy_bytes
,
redundant_audio
,
F5
);
celt_decoder_ctl
(
celt_dec
,
CELT_RESET_STATE
);
}
...
...
@@ -519,7 +520,7 @@ int opus_decode(OpusDecoder *st, const unsigned char *data,
for
(
i
=
0
;
i
<
count
;
i
++
)
{
int
ret
;
ret
=
opus_decode_frame
(
st
,
data
,
len
,
pcm
,
frame_size
-
nb_samples
,
decode_fec
);
ret
=
opus_decode_frame
(
st
,
data
,
size
[
i
]
,
pcm
,
frame_size
-
nb_samples
,
decode_fec
);
if
(
ret
<
0
)
return
ret
;
data
+=
size
[
i
];
...
...
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