diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2006-01-08 22:50:14 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2006-01-08 22:50:14 +0000 |
| commit | 07c4254135aecc6ae0964d6d6413a40251e8f6a8 (patch) | |
| tree | dac473efeb9f49cb6fefeb43c053f2dd0dc1b6cc /apps/codecs/wavpack.c | |
| parent | e8b1787296dae2a69893bd0fe97b2361fb6180ba (diff) | |
| download | rockbox-07c4254135aecc6ae0964d6d6413a40251e8f6a8.zip rockbox-07c4254135aecc6ae0964d6d6413a40251e8f6a8.tar.gz rockbox-07c4254135aecc6ae0964d6d6413a40251e8f6a8.tar.bz2 rockbox-07c4254135aecc6ae0964d6d6413a40251e8f6a8.tar.xz | |
Don't include the .bss and .ibss sections in the binary image for codecs and plugins. Saves quite some disk space (and buffer space in case of codec changes during playback).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8308 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/wavpack.c')
| -rw-r--r-- | apps/codecs/wavpack.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/codecs/wavpack.c b/apps/codecs/wavpack.c index 21c1947..ff890ba 100644 --- a/apps/codecs/wavpack.c +++ b/apps/codecs/wavpack.c @@ -40,6 +40,8 @@ static long read_callback (void *buffer, long bytes) extern char iramcopy[]; extern char iramstart[]; extern char iramend[]; +extern char iedata[]; +extern char iend[]; #endif /* this is the codec entry point */ @@ -56,6 +58,7 @@ enum codec_status codec_start(struct codec_api* api) #ifdef USE_IRAM ci->memcpy(iramstart, iramcopy, iramend-iramstart); + ci->memset(iedata, 0, iend - iedata); #endif ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512)); |