summaryrefslogtreecommitdiff
path: root/apps/codecs/shorten.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/shorten.c')
-rw-r--r--apps/codecs/shorten.c7
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
24extern char iramcopy[]; 24extern char iramcopy[];
25extern char iramstart[]; 25extern char iramstart[];
26extern char iramend[]; 26extern char iramend[];
27extern char iedata[];
28extern char iend[];
27#endif 29#endif
28 30
29struct codec_api* rb; 31struct 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));