From 693098f6ee1783ec1f0d0390ddcb4f96663bf088 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Tue, 29 May 2018 00:35:02 -0400 Subject: Avoiding arithmetic on NULL pointer Causes a warning with -Wnull-pointer-arithmetic and the code wasn't doing anything anyway (the ctl call ignores NULLs) --- src/opus_encoder.c | 2 -- 1 file changed, 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 */ -- cgit v1.2.3