mirror of
https://github.com/xiph/opus.git
synced 2025-05-27 21:59:12 +00:00
Silence compiler warnings
clang -Wcast-align warnings with ambisonics enabled clang -Wnull-pointer-arithmetic warnings in test_opus_api.c gcc -Wimplicit-fallthrough warnings on arm msvc warning C4244 in celt_encoder.c with fixed point
This commit is contained in:
parent
c1c247d7e7
commit
01b035f8ba
6 changed files with 54 additions and 46 deletions
|
@ -1221,7 +1221,7 @@ static int run_prefilter(CELTEncoder *st, celt_sig *in, celt_sig *prefilter_mem,
|
|||
}
|
||||
#ifndef DISABLE_FLOAT_API
|
||||
if (analysis->valid)
|
||||
gain1 *= analysis->max_pitch_ratio;
|
||||
gain1 = (opus_val16)(gain1 * analysis->max_pitch_ratio);
|
||||
#else
|
||||
(void)analysis;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue