forked from len0rd/rockbox
Fix warnings.
Change-Id: If3cbcd7557797684f1b7fea8e1bb134777680dee
This commit is contained in:
parent
e5eb74592e
commit
10b3bc78f6
2 changed files with 3 additions and 1 deletions
|
@ -312,6 +312,7 @@ static int id2index(int id)
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef TALK_PROGRESSIVE_LOAD
|
||||||
static int index2id(int index)
|
static int index2id(int index)
|
||||||
{
|
{
|
||||||
int id = index;
|
int id = index;
|
||||||
|
@ -329,6 +330,7 @@ static int index2id(int index)
|
||||||
|
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int free_oldest_clip(void)
|
static int free_oldest_clip(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -458,7 +458,7 @@ static enum voice_state voice_decode(struct voice_thread_data *td)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (td->vi.size > VOICE_MAX_ENCODED_FRAME_SIZE
|
if (td->vi.size > VOICE_MAX_ENCODED_FRAME_SIZE
|
||||||
&& td->bits.charPtr > (td->vi.size - VOICE_MAX_ENCODED_FRAME_SIZE)
|
&& td->bits.charPtr > (int)(td->vi.size - VOICE_MAX_ENCODED_FRAME_SIZE)
|
||||||
&& td->vi.get_more != NULL)
|
&& td->vi.get_more != NULL)
|
||||||
{
|
{
|
||||||
/* request more data _before_ running out of data (requesting
|
/* request more data _before_ running out of data (requesting
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue