diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-03-23 03:16:33 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-03-27 15:13:26 -0400 |
commit | 574d50cb572466f6391cee55781d7aa5900ca249 (patch) | |
tree | 2b56a03bd796e6bb7c4ecb32f829dad838bf8abe /celt/celt.h | |
parent | 92ffce621df6ace95267ac8c13aa0d862f6a476b (diff) | |
download | opus-574d50cb572466f6391cee55781d7aa5900ca249.tar.gz |
Adding decoder state validation
Diffstat (limited to 'celt/celt.h')
-rw-r--r-- | celt/celt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/celt/celt.h b/celt/celt.h index ce8349cf..24b6b2b5 100644 --- a/celt/celt.h +++ b/celt/celt.h @@ -209,6 +209,13 @@ static OPUS_INLINE int fromOpus(unsigned char c) extern const signed char tf_select_table[4][8]; +#if defined(ENABLE_HARDENING) || defined(ENABLE_ASSERTIONS) +void validate_celt_decoder(CELTDecoder *st); +#define VALIDATE_CELT_DECODER(st) validate_celt_decoder(st) +#else +#define VALIDATE_CELT_DECODER(st) +#endif + int resampling_factor(opus_int32 rate); void celt_preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_RESTRICT inp, |