Displaying 1 result from an estimated 1 matches for "ms_get_preemph_mem".
2015 Aug 07
0
[PATCH] Silence clang -Wcast-align warnings
...ultistream_encoder.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/opus_multistream_encoder.c b/src/opus_multistream_encoder.c
index 6e87337..7163d14 100644
--- a/src/opus_multistream_encoder.c
+++ b/src/opus_multistream_encoder.c
@@ -98,7 +98,8 @@ static opus_val32 *ms_get_preemph_mem(OpusMSEncoder *st)
else
ptr += align(mono_size);
}
- return (opus_val32*)(ptr+st->layout.nb_channels*120*sizeof(opus_val32));
+ /* void* cast avoids clang -Wcast-align warning */
+ return (opus_val32*)(void*)(ptr+st->layout.nb_channels*120*sizeof(opus_val32));
}...