forked from len0rd/rockbox
Support for Musepack SV4-6 stream files. Patch by Andrew Cupper.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10843 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
47e4f6ce48
commit
5e182e0862
2 changed files with 25 additions and 3 deletions
|
@ -234,8 +234,15 @@ mpc_streaminfo_read(mpc_streaminfo * si, mpc_reader * r)
|
|||
}
|
||||
} else {
|
||||
#ifdef MPC_SUPPORT_SV456
|
||||
#ifndef MPC_LITTLE_ENDIAN
|
||||
mpc_uint32_t ptr;
|
||||
for (ptr = 0; ptr < 8; ptr++) {
|
||||
HeaderData[ptr] = mpc_swap32(HeaderData[ptr]);
|
||||
}
|
||||
#endif
|
||||
// stream version 4-6
|
||||
Error = streaminfo_read_header_sv6(si, HeaderData);
|
||||
if (Error != ERROR_CODE_OK) return Error;
|
||||
#else
|
||||
return ERROR_CODE_INVALIDSV;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue