diff --git a/apps/codecs/libmad/layer3.c b/apps/codecs/libmad/layer3.c old mode 100644 new mode 100755 index 0a53086..1bdfd05 --- a/apps/codecs/libmad/layer3.c +++ b/apps/codecs/libmad/layer3.c @@ -1304,7 +1304,7 @@ static void III_reorder(mad_fixed_t xr[576], struct channel const *channel, unsigned char const sfbwidth[39]) { - mad_fixed_t tmp[32][3][6]; + static mad_fixed_t tmp[32][3][6]; unsigned int sb, l, f, w, sbw[3], sw[3]; /* this is probably wrong for 8000 Hz mixed blocks */ @@ -3047,6 +3047,7 @@ enum mad_error III_decode(struct mad_bitptr *ptr, struct mad_frame *frame, { struct mad_header *header = &frame->header; unsigned int sfreqi, ngr, gr; + static mad_fixed_t xr[2][576]; { unsigned int sfreq; @@ -3071,7 +3072,6 @@ enum mad_error III_decode(struct mad_bitptr *ptr, struct mad_frame *frame, for (gr = 0; gr < ngr; ++gr) { struct granule *granule = &si->gr[gr]; unsigned char const *sfbwidth[2]; - mad_fixed_t xr[2][576]; unsigned int ch; enum mad_error error;