From 4c026f0c7f5ca6d02bf010fabe5123b9b39ddf47 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sun, 27 Jun 2010 18:11:07 +0000 Subject: Comment unused code in libmad. Clean up initialization and memset'ing of decoder arrays. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27159 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libmad/stream.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/codecs/libmad/stream.c') diff --git a/apps/codecs/libmad/stream.c b/apps/codecs/libmad/stream.c index adc9826..b0c5ad3 100644 --- a/apps/codecs/libmad/stream.c +++ b/apps/codecs/libmad/stream.c @@ -48,7 +48,10 @@ void mad_stream_init(struct mad_stream *stream) mad_bit_init(&stream->anc_ptr, 0); stream->anc_bitlen = 0; +/* rockbox: comment this to avoid allocation in following code. main_data is + * linked to an array in rockbox' apps/codecs/mpa.c before calling this. stream->main_data = 0; +*/ stream->md_len = 0; stream->options = 0; -- cgit v1.1