summaryrefslogtreecommitdiff
path: root/apps/codecs/libmad/synth.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libmad/synth.c')
-rw-r--r--apps/codecs/libmad/synth.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/libmad/synth.c b/apps/codecs/libmad/synth.c
index c023f01ae5..b1a8491a69 100644
--- a/apps/codecs/libmad/synth.c
+++ b/apps/codecs/libmad/synth.c
@@ -592,14 +592,14 @@ void synth_full(struct mad_synth *synth, struct mad_frame const *frame,
592 int sb; 592 int sb;
593 unsigned int phase, ch, s, p; 593 unsigned int phase, ch, s, p;
594 mad_fixed_t *pcm, (*filter)[2][2][16][8]; 594 mad_fixed_t *pcm, (*filter)[2][2][16][8];
595 mad_fixed_t const (*sbsample)[36][32]; 595 mad_fixed_t (*sbsample)[36][32];
596 mad_fixed_t (*fe)[8], (*fx)[8], (*fo)[8]; 596 mad_fixed_t (*fe)[8], (*fx)[8], (*fo)[8];
597 mad_fixed_t const (*D0ptr)[32]; 597 mad_fixed_t const (*D0ptr)[32];
598 mad_fixed_t const (*D1ptr)[32]; 598 mad_fixed_t const (*D1ptr)[32];
599 mad_fixed64hi_t hi0, hi1; 599 mad_fixed64hi_t hi0, hi1;
600 600
601 for (ch = 0; ch < nch; ++ch) { 601 for (ch = 0; ch < nch; ++ch) {
602 sbsample = &frame->sbsample[ch]; 602 sbsample = &*frame->sbsample_prev[ch];
603 filter = &synth->filter[ch]; 603 filter = &synth->filter[ch];
604 phase = synth->phase; 604 phase = synth->phase;
605 pcm = synth->pcm.samples[ch]; 605 pcm = synth->pcm.samples[ch];
@@ -1053,7 +1053,7 @@ void synth_full(struct mad_synth *synth, struct mad_frame const *frame,
1053 int p; 1053 int p;
1054 unsigned int phase, ch, s; 1054 unsigned int phase, ch, s;
1055 mad_fixed_t *pcm, (*filter)[2][2][16][8]; 1055 mad_fixed_t *pcm, (*filter)[2][2][16][8];
1056 mad_fixed_t const (*sbsample)[36][32]; 1056 mad_fixed_t (*sbsample)[36][32];
1057 mad_fixed_t (*fe)[8], (*fx)[8], (*fo)[8]; 1057 mad_fixed_t (*fe)[8], (*fx)[8], (*fo)[8];
1058 mad_fixed_t const (*D0ptr)[32], *ptr; 1058 mad_fixed_t const (*D0ptr)[32], *ptr;
1059 mad_fixed_t const (*D1ptr)[32]; 1059 mad_fixed_t const (*D1ptr)[32];
@@ -1061,7 +1061,7 @@ void synth_full(struct mad_synth *synth, struct mad_frame const *frame,
1061 mad_fixed64lo_t lo; 1061 mad_fixed64lo_t lo;
1062 1062
1063 for (ch = 0; ch < nch; ++ch) { 1063 for (ch = 0; ch < nch; ++ch) {
1064 sbsample = &frame->sbsample[ch]; 1064 sbsample = &(*frame->sbsample_prev)[ch];
1065 filter = &synth->filter[ch]; 1065 filter = &synth->filter[ch];
1066 phase = synth->phase; 1066 phase = synth->phase;
1067 pcm = synth->pcm.samples[ch]; 1067 pcm = synth->pcm.samples[ch];
@@ -1202,7 +1202,7 @@ void synth_full(struct mad_synth *synth, struct mad_frame const *frame,
1202 mad_fixed64lo_t lo; 1202 mad_fixed64lo_t lo;
1203 1203
1204 for (ch = 0; ch < nch; ++ch) { 1204 for (ch = 0; ch < nch; ++ch) {
1205 sbsample = &frame->sbsample[ch]; 1205 sbsample = &frame->sbsample_prev[ch];
1206 filter = &synth->filter[ch]; 1206 filter = &synth->filter[ch];
1207 phase = synth->phase; 1207 phase = synth->phase;
1208 pcm = synth->pcm.samples[ch]; 1208 pcm = synth->pcm.samples[ch];
@@ -1403,14 +1403,14 @@ void synth_half(struct mad_synth *synth, struct mad_frame const *frame,
1403{ 1403{
1404 unsigned int phase, ch, s, sb, pe, po; 1404 unsigned int phase, ch, s, sb, pe, po;
1405 mad_fixed_t *pcm1, *pcm2, (*filter)[2][2][16][8]; 1405 mad_fixed_t *pcm1, *pcm2, (*filter)[2][2][16][8];
1406 mad_fixed_t const (*sbsample)[36][32]; 1406 mad_fixed_t (*sbsample)[36][32];
1407 register mad_fixed_t (*fe)[8], (*fx)[8], (*fo)[8]; 1407 register mad_fixed_t (*fe)[8], (*fx)[8], (*fo)[8];
1408 register mad_fixed_t const (*Dptr)[32], *ptr; 1408 register mad_fixed_t const (*Dptr)[32], *ptr;
1409 register mad_fixed64hi_t hi; 1409 register mad_fixed64hi_t hi;
1410 register mad_fixed64lo_t lo; 1410 register mad_fixed64lo_t lo;
1411 1411
1412 for (ch = 0; ch < nch; ++ch) { 1412 for (ch = 0; ch < nch; ++ch) {
1413 sbsample = &frame->sbsample[ch]; 1413 sbsample = &(*frame->sbsample_prev)[ch];
1414 filter = &synth->filter[ch]; 1414 filter = &synth->filter[ch];
1415 phase = synth->phase; 1415 phase = synth->phase;
1416 pcm1 = synth->pcm.samples[ch]; 1416 pcm1 = synth->pcm.samples[ch];