diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-12-08 00:06:59 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-12-08 00:06:59 -0500 |
commit | b14056e90fb86a5494fb70ab3632c2aef1c91e96 (patch) | |
tree | 716e856ffa55cb7db088d0c9ca07bdeddcc1a96c | |
parent | 9eb9e4ab22967ac72f98cb5bd67d0fc7e6059444 (diff) | |
download | rockbox-b14056e90f.tar.gz rockbox-b14056e90f.zip |
libmad synth.c silence warnings
synth.c is using a negative offset which gcc doesn't like
equlivalent code just uses pointer math instead
Change-Id: Ia1282c5608409cdff05cd4b90c4d4b695174482a
-rw-r--r-- | lib/rbcodec/codecs/libmad/synth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/libmad/synth.c b/lib/rbcodec/codecs/libmad/synth.c index ebcf3d5015..e82f50dd67 100644 --- a/lib/rbcodec/codecs/libmad/synth.c +++ b/lib/rbcodec/codecs/libmad/synth.c @@ -863,7 +863,7 @@ void synth_full(struct mad_synth *synth, struct mad_frame const *frame, fo = &(*filter)[1][~phase & 1][0]; D0ptr = (void*)&D[0][ p]; - D1ptr = (void*)&D[0][-p]; + D1ptr = (void*)D-p; if(s & 1) { |