forked from len0rd/rockbox
Minor whitespace and formatting fixes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12253 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e8fe1f596f
commit
5158751263
2 changed files with 16 additions and 12 deletions
|
|
@ -570,10 +570,12 @@ static bool get_speex_metadata(int fd, struct mp3entry* id3)
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((memcmp(buf, "OggS", 4) != 0) || (memcmp(&buf[28], "Speex", 5) != 0))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/* We need to ensure the serial number from this page is the same as the
|
||||
* one from the last page (since we only support a single bitstream).
|
||||
*/
|
||||
|
|
@ -759,9 +761,11 @@ static bool get_vorbis_metadata(int fd, struct mp3entry* id3)
|
|||
if ((memcmp(buf, "OggS", 4) != 0) || (memcmp(&buf[28], "Speex", 5) != 0))
|
||||
{
|
||||
return false;
|
||||
}else{
|
||||
id3->codectype=AFMT_SPEEX;
|
||||
return get_speex_metadata(fd,id3);
|
||||
}
|
||||
else
|
||||
{
|
||||
id3->codectype = AFMT_SPEEX;
|
||||
return get_speex_metadata(fd, id3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ const struct afmt_entry audio_formats[AFMT_NUM_CODECS] =
|
|||
AFMT_ENTRY("NSF", "nsf", NULL, "nsf\0nsfe\0" ),
|
||||
/* Speex File Format */
|
||||
[AFMT_SPEEX] =
|
||||
AFMT_ENTRY("Speex","speex", NULL, "spx\0" )
|
||||
AFMT_ENTRY("Speex","speex", NULL, "spx\0" ),
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue