summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-27 13:14:20 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-27 13:14:20 -0400
commit6316bd009aef26bac3b8cc2516c7d5c61dd9a75c (patch)
tree0520dcf0823171424a4229d6d7c9cb8c0595eaff
parent540cc586d7fc1528d89103dbf39a29ec46bee385 (diff)
downloadopus-exp_hardening2.tar.gz
MUST_SUCCEED() fixesexp_hardening2
-rw-r--r--celt/celt_decoder.c2
-rw-r--r--src/opus_decoder.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/celt/celt_decoder.c b/celt/celt_decoder.c
index 9973f0d3..8520e57b 100644
--- a/celt/celt_decoder.c
+++ b/celt/celt_decoder.c
@@ -211,7 +211,7 @@ OPUS_CUSTOM_NOSTATIC int opus_custom_decoder_init(CELTDecoder *st, const CELTMod
#endif
st->arch = opus_select_arch();
- MUST_SUCCEED(opus_custom_decoder_ctl(st, OPUS_RESET_STATE));
+ opus_custom_decoder_ctl(st, OPUS_RESET_STATE);
return OPUS_OK;
}
diff --git a/src/opus_decoder.c b/src/opus_decoder.c
index 60b5a962..9113638a 100644
--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -148,7 +148,7 @@ int opus_decoder_init(OpusDecoder *st, opus_int32 Fs, int channels)
ret = celt_decoder_init(celt_dec, Fs, channels);
if(ret!=OPUS_OK)return OPUS_INTERNAL_ERROR;
- MUST_SUCCEED(celt_decoder_ctl(celt_dec, CELT_SET_SIGNALLING(0)));
+ celt_decoder_ctl(celt_dec, CELT_SET_SIGNALLING(0));
st->prev_mode = 0;
st->frame_size = Fs/400;
@@ -871,7 +871,7 @@ int opus_decoder_ctl(OpusDecoder *st, int request, ...)
sizeof(OpusDecoder)-
((char*)&st->OPUS_DECODER_RESET_START - (char*)st));
- MUST_SUCCEED(celt_decoder_ctl(celt_dec, OPUS_RESET_STATE));
+ celt_decoder_ctl(celt_dec, OPUS_RESET_STATE);
silk_InitDecoder( silk_dec );
st->stream_channels = st->channels;
st->frame_size = st->Fs/400;