ref: da404556569b6a17c2b37b334d74e0902a26264d
parent: 3cb71dbefd5a0a2ec4d692c6dd71c9ed6d207ffb
author: Mark Harris <mark.hsj@gmail.com>
date: Sat Jun 13 16:20:12 EDT 2020
Silence clang silk_encoder alignment warning
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -2723,7 +2723,7 @@
}
if (st->silk_mode.useDTX && (st->prev_mode == MODE_SILK_ONLY || st->prev_mode == MODE_HYBRID)) {
/* DTX determined by Silk. */
- silk_encoder *silk_enc = (silk_encoder*)((char*)st+st->silk_enc_offset);
+ silk_encoder *silk_enc = (silk_encoder*)(void *)((char*)st+st->silk_enc_offset);
*value = silk_enc->state_Fxx[0].sCmn.noSpeechCounter >= NB_SPEECH_FRAMES_BEFORE_DTX;
/* Stereo: check second channel unless only the middle channel was encoded. */
if(*value == 1 && st->silk_mode.nChannelsInternal == 2 && silk_enc->prev_decode_only_middle == 0) {