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
cc14cdf8
Commit
cc14cdf8
authored
Jul 07, 2011
by
Jean-Marc Valin
Browse files
Ensures that the end band is always set for redundant frames
parent
0d031d61
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/opus_decoder.c
View file @
cc14cdf8
...
...
@@ -296,7 +296,6 @@ static int opus_decode_frame(OpusDecoder *st, const unsigned char *data,
if
(
mode
!=
MODE_CELT_ONLY
)
start_band
=
17
;
if
(
mode
!=
MODE_SILK_ONLY
)
{
int
endband
=
21
;
...
...
@@ -305,6 +304,7 @@ static int opus_decode_frame(OpusDecoder *st, const unsigned char *data,
case
OPUS_BANDWIDTH_NARROWBAND
:
endband
=
13
;
break
;
case
OPUS_BANDWIDTH_MEDIUMBAND
:
case
OPUS_BANDWIDTH_WIDEBAND
:
endband
=
17
;
break
;
...
...
src/opus_encoder.c
View file @
cc14cdf8
...
...
@@ -438,6 +438,7 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size,
case
OPUS_BANDWIDTH_NARROWBAND
:
endband
=
13
;
break
;
case
OPUS_BANDWIDTH_MEDIUMBAND
:
case
OPUS_BANDWIDTH_WIDEBAND
:
endband
=
17
;
break
;
...
...
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