diff options
Diffstat (limited to 'apps/codecs/libmusepack/mpc_decoder.c')
-rw-r--r-- | apps/codecs/libmusepack/mpc_decoder.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/codecs/libmusepack/mpc_decoder.c b/apps/codecs/libmusepack/mpc_decoder.c index f8fdd8889e..024e7ab2c2 100644 --- a/apps/codecs/libmusepack/mpc_decoder.c +++ b/apps/codecs/libmusepack/mpc_decoder.c | |||
@@ -269,11 +269,15 @@ mpc_decoder_huffman_decode_faster(mpc_decoder *d, const HuffmanTyp* Table) | |||
269 | return Table->Value; | 269 | return Table->Value; |
270 | } | 270 | } |
271 | 271 | ||
272 | MPC_SAMPLE_FORMAT V_L[MPC_V_MEM + 960] IBSS_ATTR; | ||
273 | MPC_SAMPLE_FORMAT V_R[MPC_V_MEM + 960] IBSS_ATTR; | ||
274 | |||
272 | static void | 275 | static void |
273 | mpc_decoder_reset_v(mpc_decoder *d) | 276 | mpc_decoder_reset_v(mpc_decoder *d) |
274 | { | 277 | { |
275 | memset(d->V_L, 0, sizeof d->V_L); | 278 | /* since d->V_L and d->V_R are now pointers, sizeof (d->V_x) will no longer work */ |
276 | memset(d->V_R, 0, sizeof d->V_R); | 279 | memset(d->V_L, 0, sizeof V_L); |
280 | memset(d->V_R, 0, sizeof V_R); | ||
277 | } | 281 | } |
278 | 282 | ||
279 | static void | 283 | static void |
@@ -1106,9 +1110,6 @@ mpc_decoder_read_bitstream_sv7(mpc_decoder *d) | |||
1106 | } | 1110 | } |
1107 | } | 1111 | } |
1108 | 1112 | ||
1109 | MPC_SAMPLE_FORMAT V_L[MPC_V_MEM + 960] IBSS_ATTR; | ||
1110 | MPC_SAMPLE_FORMAT V_R[MPC_V_MEM + 960] IBSS_ATTR; | ||
1111 | |||
1112 | void mpc_decoder_setup(mpc_decoder *d, mpc_reader *r) | 1113 | void mpc_decoder_setup(mpc_decoder *d, mpc_reader *r) |
1113 | { | 1114 | { |
1114 | d->r = r; | 1115 | d->r = r; |