diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-05-17 22:26:19 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-05-17 22:26:19 +0300 |
commit | 004ef8b9b1771688cd514cdb1c9f466913e3a355 (patch) | |
tree | d6a0f6102b777eaeba611c9cb15bc2bc8d167b66 /celt | |
parent | 652c4559f593d3aad78bd5c85a216eeae7859429 (diff) |
Oops, fix NaN test
Diffstat (limited to 'celt')
-rw-r--r-- | celt/celt_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/celt_encoder.c b/celt/celt_encoder.c index ad0ebf0a..66b5f00d 100644 --- a/celt/celt_encoder.c +++ b/celt/celt_encoder.c @@ -1724,7 +1724,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, compute_mdcts(mode, shortBlocks, in, freq, C, CC, LM, st->upsample, st->arch); /* This should catch any NaN in the CELT input. Since we're not supposed to see any (they're filtered at the Opus layer), just abort. */ - celt_assert(!celt_isnan(freq[0]) && (C==1 || !celt_isnan(freq[C*N]))); + celt_assert(!celt_isnan(freq[0]) && (C==1 || !celt_isnan(freq[N]))); if (CC==2&&C==1) tf_chan = 0; compute_band_energies(mode, freq, bandE, effEnd, C, LM, st->arch); |