diff options
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/wavpack_enc.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/apps/codecs/wavpack_enc.c b/apps/codecs/wavpack_enc.c index cde208739f..eced7f1f4e 100644 --- a/apps/codecs/wavpack_enc.c +++ b/apps/codecs/wavpack_enc.c | |||
@@ -43,16 +43,6 @@ static int enc_channels; | |||
43 | 43 | ||
44 | static long input_buffer[CHUNK_SIZE/2] IBSS_ATTR; | 44 | static long input_buffer[CHUNK_SIZE/2] IBSS_ATTR; |
45 | 45 | ||
46 | void *memset(void *s, int c, size_t n) | ||
47 | { | ||
48 | return(ci->memset(s,c,n)); | ||
49 | } | ||
50 | |||
51 | void *memcpy(void *dest, const void *src, size_t n) | ||
52 | { | ||
53 | return(ci->memcpy(dest,src,n)); | ||
54 | } | ||
55 | |||
56 | /* update file header info callback function */ | 46 | /* update file header info callback function */ |
57 | void enc_set_header(void *head_buffer, /* ptr to the file header data */ | 47 | void enc_set_header(void *head_buffer, /* ptr to the file header data */ |
58 | int head_size, /* size of this header data */ | 48 | int head_size, /* size of this header data */ |
@@ -112,6 +102,8 @@ enum codec_status codec_start(struct codec_api* api) | |||
112 | bool cpu_boosted = true; /* start boosted */ | 102 | bool cpu_boosted = true; /* start boosted */ |
113 | 103 | ||
114 | ci = api; // copy to global api pointer | 104 | ci = api; // copy to global api pointer |
105 | |||
106 | codec_init(ci); | ||
115 | 107 | ||
116 | if(ci->enc_get_inputs == NULL || | 108 | if(ci->enc_get_inputs == NULL || |
117 | ci->enc_set_parameters == NULL || | 109 | ci->enc_set_parameters == NULL || |