summaryrefslogtreecommitdiff
path: root/apps/codecs/libmusepack/streaminfo.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2006-09-01 12:05:04 +0000
committerThom Johansen <thomj@rockbox.org>2006-09-01 12:05:04 +0000
commit5e182e08620fd5aa7743bf83d759f6847cd76b45 (patch)
treec5532971b5ac6369d57a3371763ae1b0cbc41b79 /apps/codecs/libmusepack/streaminfo.c
parent47e4f6ce4878314d386512d611c428be7ea26787 (diff)
downloadrockbox-5e182e08620fd5aa7743bf83d759f6847cd76b45.tar.gz
rockbox-5e182e08620fd5aa7743bf83d759f6847cd76b45.zip
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
Diffstat (limited to 'apps/codecs/libmusepack/streaminfo.c')
-rw-r--r--apps/codecs/libmusepack/streaminfo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/codecs/libmusepack/streaminfo.c b/apps/codecs/libmusepack/streaminfo.c
index 5475c6f0f6..d9c925dbfb 100644
--- a/apps/codecs/libmusepack/streaminfo.c
+++ b/apps/codecs/libmusepack/streaminfo.c
@@ -234,8 +234,15 @@ mpc_streaminfo_read(mpc_streaminfo * si, mpc_reader * r)
234 } 234 }
235 } else { 235 } else {
236#ifdef MPC_SUPPORT_SV456 236#ifdef MPC_SUPPORT_SV456
237#ifndef MPC_LITTLE_ENDIAN
238 mpc_uint32_t ptr;
239 for (ptr = 0; ptr < 8; ptr++) {
240 HeaderData[ptr] = mpc_swap32(HeaderData[ptr]);
241 }
242#endif
237 // stream version 4-6 243 // stream version 4-6
238 Error = streaminfo_read_header_sv6(si, HeaderData); 244 Error = streaminfo_read_header_sv6(si, HeaderData);
245 if (Error != ERROR_CODE_OK) return Error;
239#else 246#else
240 return ERROR_CODE_INVALIDSV; 247 return ERROR_CODE_INVALIDSV;
241#endif 248#endif