From b14056e90fb86a5494fb70ab3632c2aef1c91e96 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 8 Dec 2024 00:06:59 -0500 Subject: [PATCH] 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 --- lib/rbcodec/codecs/libmad/synth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {