diff options
Diffstat (limited to 'apps/codecs/shorten.c')
-rw-r--r-- | apps/codecs/shorten.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/codecs/shorten.c b/apps/codecs/shorten.c index c58b009ab1..9e679f5ea7 100644 --- a/apps/codecs/shorten.c +++ b/apps/codecs/shorten.c | |||
@@ -20,10 +20,12 @@ | |||
20 | #include "codeclib.h" | 20 | #include "codeclib.h" |
21 | #include <codecs/libffmpegFLAC/shndec.h> | 21 | #include <codecs/libffmpegFLAC/shndec.h> |
22 | 22 | ||
23 | #ifndef SIMULATOR | 23 | #ifdef USE_IRAM |
24 | extern char iramcopy[]; | 24 | extern char iramcopy[]; |
25 | extern char iramstart[]; | 25 | extern char iramstart[]; |
26 | extern char iramend[]; | 26 | extern char iramend[]; |
27 | extern char iedata[]; | ||
28 | extern char iend[]; | ||
27 | #endif | 29 | #endif |
28 | 30 | ||
29 | struct codec_api* rb; | 31 | struct codec_api* rb; |
@@ -52,8 +54,9 @@ enum codec_status codec_start(struct codec_api* api) | |||
52 | rb = api; | 54 | rb = api; |
53 | ci = (struct codec_api*)api; | 55 | ci = (struct codec_api*)api; |
54 | 56 | ||
55 | #ifndef SIMULATOR | 57 | #ifdef USE_IRAM |
56 | ci->memcpy(iramstart, iramcopy, iramend-iramstart); | 58 | ci->memcpy(iramstart, iramcopy, iramend-iramstart); |
59 | ci->memset(iedata, 0, iend - iedata); | ||
57 | #endif | 60 | #endif |
58 | 61 | ||
59 | ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512)); | 62 | ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512)); |