summaryrefslogtreecommitdiff
path: root/src/opus_encoder.c
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-26 13:48:39 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-27 15:13:28 -0400
commitf0cea0d23767cd1dab1dd902622aeb7efa53b669 (patch)
tree895d90e2e38cf374876fdfd45de4cd837bfb466b /src/opus_encoder.c
parent2b249dda9a184188dc713043bdc9a367e9d1c034 (diff)
downloadopus-f0cea0d23767cd1dab1dd902622aeb7efa53b669.tar.gz
Misc assertion cleanup
Diffstat (limited to 'src/opus_encoder.c')
-rw-r--r--src/opus_encoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opus_encoder.c b/src/opus_encoder.c
index 80e2e706..35a6eaa7 100644
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -1737,7 +1737,7 @@ opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_
} else if (curr_bandwidth == OPUS_BANDWIDTH_MEDIUMBAND) {
st->silk_mode.desiredInternalSampleRate = 12000;
} else {
- silk_assert( st->mode == MODE_HYBRID || curr_bandwidth == OPUS_BANDWIDTH_WIDEBAND );
+ celt_assert( st->mode == MODE_HYBRID || curr_bandwidth == OPUS_BANDWIDTH_WIDEBAND );
st->silk_mode.desiredInternalSampleRate = 16000;
}
if( st->mode == MODE_HYBRID ) {
@@ -1843,7 +1843,7 @@ opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_
curr_bandwidth = OPUS_BANDWIDTH_WIDEBAND;
}
} else {
- silk_assert( st->silk_mode.internalSampleRate == 16000 );
+ celt_assert( st->silk_mode.internalSampleRate == 16000 );
}
st->silk_mode.opusCanSwitch = st->silk_mode.switchReady && !st->nonfinal_frame;