ref: cc14cdf87515d3923875ffa3087fa13d4fb025da
parent: 0d031d61a3e155b9a917585f82621f432649787b
author: Jean-Marc Valin <[email protected]>
date: Thu Jul 7 18:39:19 EDT 2011
Ensures that the end band is always set for redundant frames
--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -296,7 +296,6 @@
if (mode != MODE_CELT_ONLY)
start_band = 17;
- if (mode != MODE_SILK_ONLY)
{
int endband=21;
@@ -305,6 +304,7 @@
case OPUS_BANDWIDTH_NARROWBAND:
endband = 13;
break;
+ case OPUS_BANDWIDTH_MEDIUMBAND:
case OPUS_BANDWIDTH_WIDEBAND:
endband = 17;
break;
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -438,6 +438,7 @@
case OPUS_BANDWIDTH_NARROWBAND:
endband = 13;
break;
+ case OPUS_BANDWIDTH_MEDIUMBAND:
case OPUS_BANDWIDTH_WIDEBAND:
endband = 17;
break;