diff options
Diffstat (limited to 'apps/codecs/shorten.c')
-rw-r--r-- | apps/codecs/shorten.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/shorten.c b/apps/codecs/shorten.c index 26b5e09d6c..c58b009ab1 100644 --- a/apps/codecs/shorten.c +++ b/apps/codecs/shorten.c | |||
@@ -85,7 +85,7 @@ next_track: | |||
85 | 85 | ||
86 | /* Read the shorten & wave headers */ | 86 | /* Read the shorten & wave headers */ |
87 | buf = ci->request_buffer(&bytesleft, MAX_FRAMESIZE); | 87 | buf = ci->request_buffer(&bytesleft, MAX_FRAMESIZE); |
88 | res = shorten_init(&sc, buf, bytesleft); | 88 | res = shorten_init(&sc, (unsigned char *)buf, bytesleft); |
89 | if (res < 0) { | 89 | if (res < 0) { |
90 | LOGF("shorten_init error: %d\n", res); | 90 | LOGF("shorten_init error: %d\n", res); |
91 | return CODEC_ERROR; | 91 | return CODEC_ERROR; |
@@ -139,10 +139,10 @@ seek_start: | |||
139 | ci->yield(); | 139 | ci->yield(); |
140 | if (cur_chan == 0) { | 140 | if (cur_chan == 0) { |
141 | res = shorten_decode_frame(&sc, decoded0 + sc.nwrap, offset0, | 141 | res = shorten_decode_frame(&sc, decoded0 + sc.nwrap, offset0, |
142 | buf, bytesleft); | 142 | (unsigned char *)buf, bytesleft); |
143 | } else { | 143 | } else { |
144 | res = shorten_decode_frame(&sc, decoded1 + sc.nwrap, offset1, | 144 | res = shorten_decode_frame(&sc, decoded1 + sc.nwrap, offset1, |
145 | buf, bytesleft); | 145 | (unsigned char *)buf, bytesleft); |
146 | } | 146 | } |
147 | cur_chan++; | 147 | cur_chan++; |
148 | 148 | ||