Always enable OPUS_TEST_RANGE_CODER_STATE.
This removes the configurability of the OPUS_TEST_RANGE_CODER_STATE consistency check, in favour of always running it. The performance penalty is low, and it's an important check on correctness for the reference encoder to provide.
This commit is contained in:
parent
fce4323e15
commit
3f0962cc1e
6 changed files with 2 additions and 21 deletions
|
@ -383,9 +383,8 @@ static int opus_decode_frame(OpusDecoder *st, const unsigned char *data,
|
|||
pcm+st->channels*F2_5, F2_5,
|
||||
st->channels, window, st->Fs);
|
||||
}
|
||||
#if OPUS_TEST_RANGE_CODER_STATE
|
||||
|
||||
st->rangeFinal = dec.rng;
|
||||
#endif
|
||||
|
||||
st->prev_mode = mode;
|
||||
st->prev_redundancy = redundancy;
|
||||
|
@ -569,13 +568,10 @@ void opus_decoder_destroy(OpusDecoder *st)
|
|||
free(st);
|
||||
}
|
||||
|
||||
#if OPUS_TEST_RANGE_CODER_STATE
|
||||
int opus_decoder_get_final_range(OpusDecoder *st)
|
||||
{
|
||||
return st->rangeFinal;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
int opus_packet_get_bandwidth(const unsigned char *data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue