1
0
Fork 0
forked from len0rd/rockbox
foxbox/lib/rbcodec
Solomon Peachy 303f262acb dsp: Silence a warning in the compressor code
/* offset = -3db * (ratio - 1) / ratio */
    db_curve[2].offset = (int32_t)((long long)(-3 << 16)
        * (ratio - 1) / ratio);

Results in a warning: left shift of negative value [-Wshift-negative-value]

To fix this, replace the '-3' with -3UL.

(As that is effectively what is already happening)

Change-Id: I5aa269ff332703d3c2d889fa032d2fdc403ff14f
2025-04-22 09:45:24 -04:00
..
codecs codecs: Silence two sets of warnings in musepak and wma codecs 2025-04-22 08:55:37 -04:00
dsp dsp: Silence a warning in the compressor code 2025-04-22 09:45:24 -04:00
metadata codecs: hopefully silence a -Wshift-negative warning in the metadata code 2025-04-22 09:00:21 -04:00
test Remove ATRAC3 specific fields (channels, extradata_size) from mp3entry 2024-02-02 09:36:53 -05:00
platform.h rbcodec dsp: Move dsp_sample_io_configure() to its own file 2022-12-22 17:20:14 -05:00
rbcodec.make [3/4] Completely remove HWCODEC support 2020-07-24 21:20:13 +00:00
rbcodecconfig-example.h
rbcodecplatform-unix.h Enable buflib and core_alloc for warble. 2015-01-19 21:30:03 +01:00
SOURCES rbcodec dsp: Move dsp_sample_io_configure() to its own file 2022-12-22 17:20:14 -05:00