Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-05-29 07:35:02 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-05-29 07:35:02 +0300
commit693098f6ee1783ec1f0d0390ddcb4f96663bf088 (patch)
tree99b8c266740bd8965483d438f69f3c8a6de70f5e
parentd5a8136218977ef1bdcadb2c883b96106755654d (diff)
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)
-rw-r--r--src/opus_encoder.c2
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 */