summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-12-08 17:44:19 -0500
committerSolomon Peachy <pizza@shaftnet.org>2024-12-08 19:14:01 -0500
commite3323e3ba7280e5d624a2ba63603344508e2f2d8 (patch)
tree9c17db7f2d862ed0a8b45a96902eadac874d3242
parentf48d1aeb272b27d08a592a361048c5c456ddae0b (diff)
downloadrockbox-e3323e3ba7.tar.gz
rockbox-e3323e3ba7.zip
Revert "libmad synth.c silence warnings"
This reverts commit b14056e90fb86a5494fb70ab3632c2aef1c91e96. Reason for revert: Not mathematically equivalent, inconsistent with other code paths, and leads to audio artifacts on ARM targets. Change-Id: I71646e6e8df2aa2c57decdb5360daff870670c87
-rw-r--r--lib/rbcodec/codecs/libmad/synth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/libmad/synth.c b/lib/rbcodec/codecs/libmad/synth.c
index e82f50dd67..ebcf3d5015 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-p;
+ D1ptr = (void*)&D[0][-p];
if(s & 1)
{