diff options
author | Mark Harris <mark.hsj@gmail.com> | 2018-07-22 03:55:24 +0300 |
---|---|---|
committer | Mark Harris <mark.hsj@gmail.com> | 2018-07-22 07:35:39 +0300 |
commit | 01b035f8ba4f48e9e1ad9f9407f77ce9a7e4aa44 (patch) | |
tree | 650ba740211d9f62460076d6fea50c29d839758e /celt | |
parent | c1c247d7e715100a50ca185948c7336bdd4dfdba (diff) |
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
Diffstat (limited to 'celt')
-rw-r--r-- | celt/celt_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/celt_encoder.c b/celt/celt_encoder.c index adf8573a..fb582c47 100644 --- a/celt/celt_encoder.c +++ b/celt/celt_encoder.c @@ -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 |