diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-03-22 10:47:09 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-03-22 10:47:09 +0000 |
commit | 94fb09316ae64f63373418df0bb1de4a90fdf73b (patch) | |
tree | 2e472a11a6070000f7b15030114d7c29934adda9 | |
parent | a8137252a5a43a1a20a62c0f81b237a8ccf12b90 (diff) | |
download | rockbox-94fb09316ae64f63373418df0bb1de4a90fdf73b.tar.gz rockbox-94fb09316ae64f63373418df0bb1de4a90fdf73b.zip |
fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25291 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/codecs/libpcm/dialogic_oki_adpcm.c | 2 | ||||
-rw-r--r-- | apps/codecs/libpcm/yamaha_adpcm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libpcm/dialogic_oki_adpcm.c b/apps/codecs/libpcm/dialogic_oki_adpcm.c index 4a6465f196..60090aaa89 100644 --- a/apps/codecs/libpcm/dialogic_oki_adpcm.c +++ b/apps/codecs/libpcm/dialogic_oki_adpcm.c | |||
@@ -155,7 +155,7 @@ static struct pcm_pos *get_seek_pos(uint32_t seek_val, int seek_mode, | |||
155 | uint32_t seek_count = (seek_mode == PCM_SEEK_TIME)? | 155 | uint32_t seek_count = (seek_mode == PCM_SEEK_TIME)? |
156 | ((uint64_t)seek_val * ci->id3->frequency / 1000LL) | 156 | ((uint64_t)seek_val * ci->id3->frequency / 1000LL) |
157 | / (blocksperchunk * fmt->samplesperblock) : | 157 | / (blocksperchunk * fmt->samplesperblock) : |
158 | seek_val / fmt->chunksize; | 158 | seek_val / (unsigned long)fmt->chunksize; |
159 | uint32_t new_count = seek(seek_count, &cur_data, read_buffer, &decode_for_seek); | 159 | uint32_t new_count = seek(seek_count, &cur_data, read_buffer, &decode_for_seek); |
160 | 160 | ||
161 | newpos.pos = new_count * fmt->chunksize; | 161 | newpos.pos = new_count * fmt->chunksize; |
diff --git a/apps/codecs/libpcm/yamaha_adpcm.c b/apps/codecs/libpcm/yamaha_adpcm.c index f1fb9b68ae..c67fe7524a 100644 --- a/apps/codecs/libpcm/yamaha_adpcm.c +++ b/apps/codecs/libpcm/yamaha_adpcm.c | |||
@@ -221,7 +221,7 @@ static struct pcm_pos *get_seek_pos(uint32_t seek_val, int seek_mode, | |||
221 | uint32_t new_count = (seek_mode == PCM_SEEK_TIME)? | 221 | uint32_t new_count = (seek_mode == PCM_SEEK_TIME)? |
222 | ((uint64_t)seek_val * ci->id3->frequency / 1000LL) | 222 | ((uint64_t)seek_val * ci->id3->frequency / 1000LL) |
223 | / (blocksperchunk * fmt->samplesperblock) : | 223 | / (blocksperchunk * fmt->samplesperblock) : |
224 | seek_val / fmt->chunksize; | 224 | seek_val / (unsigned long)fmt->chunksize; |
225 | 225 | ||
226 | if (!has_block_header) | 226 | if (!has_block_header) |
227 | { | 227 | { |