Verified Commit da404556 authored by Mark Harris's avatar Mark Harris
Browse files

Silence clang silk_encoder alignment warning

parent 3cb71dbe
Pipeline #1951 passed with stages
in 4 minutes and 39 seconds
......@@ -2723,7 +2723,7 @@ int opus_encoder_ctl(OpusEncoder *st, int request, ...)
}
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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment