diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-05-29 00:35:02 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-05-29 00:35:02 -0400 |
commit | 693098f6ee1783ec1f0d0390ddcb4f96663bf088 (patch) | |
tree | 99b8c266740bd8965483d438f69f3c8a6de70f5e /src | |
parent | d5a8136218977ef1bdcadb2c883b96106755654d (diff) | |
download | opus-693098f6ee1783ec1f0d0390ddcb4f96663bf088.tar.gz |
Avoiding arithmetic on NULL pointerv1.3-rc
Causes a warning with -Wnull-pointer-arithmetic and the code wasn't doing
anything anyway (the ctl call ignores NULLs)
Diffstat (limited to 'src')
-rw-r--r-- | src/opus_encoder.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/opus_encoder.c b/src/opus_encoder.c index bdbedec5..1c5a8b33 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -2036,8 +2036,6 @@ opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_ info.signalType = st->silk_mode.signalType; info.offset = st->silk_mode.offset; celt_encoder_ctl(celt_enc, CELT_SET_SILK_INFO(&info)); - } else { - celt_encoder_ctl(celt_enc, CELT_SET_SILK_INFO((SILKInfo*)NULL)); } /* 5 ms redundant frame for CELT->SILK */ |