diff options
author | Magnus Holmgren <magnushol@gmail.com> | 2005-09-18 12:44:27 +0000 |
---|---|---|
committer | Magnus Holmgren <magnushol@gmail.com> | 2005-09-18 12:44:27 +0000 |
commit | f5ec0fa592f9e23625de38673d22c4c7ee0fdfad (patch) | |
tree | 76915ace39025c5bcecaaef658622a25e5fd25f5 /apps/codecs/lib/xxx2wav.c | |
parent | 59c995f58b52b1d41347ba4e81585423a29aa948 (diff) | |
download | rockbox-f5ec0fa592f9e23625de38673d22c4c7ee0fdfad.tar.gz rockbox-f5ec0fa592f9e23625de38673d22c4c7ee0fdfad.zip |
iriver: fix problem with playing some long vorbis files (e.g., this week in tech, #21); the decoder would run out of memory and freeze rockbox.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7526 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib/xxx2wav.c')
-rw-r--r-- | apps/codecs/lib/xxx2wav.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/lib/xxx2wav.c b/apps/codecs/lib/xxx2wav.c index cd09d32450..776b29acfd 100644 --- a/apps/codecs/lib/xxx2wav.c +++ b/apps/codecs/lib/xxx2wav.c | |||
@@ -56,12 +56,14 @@ void* codec_calloc(size_t nmemb, size_t size) | |||
56 | return(x); | 56 | return(x); |
57 | } | 57 | } |
58 | 58 | ||
59 | #if defined(SIMULATOR) | ||
59 | void* codec_alloca(size_t size) | 60 | void* codec_alloca(size_t size) |
60 | { | 61 | { |
61 | void* x; | 62 | void* x; |
62 | x = codec_malloc(size); | 63 | x = codec_malloc(size); |
63 | return(x); | 64 | return(x); |
64 | } | 65 | } |
66 | #endif | ||
65 | 67 | ||
66 | void codec_free(void* ptr) { | 68 | void codec_free(void* ptr) { |
67 | (void)ptr; | 69 | (void)ptr; |