diff options
Diffstat (limited to 'lib/rbcodec/metadata/mp3data.c')
-rw-r--r-- | lib/rbcodec/metadata/mp3data.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rbcodec/metadata/mp3data.c b/lib/rbcodec/metadata/mp3data.c index f30e954e93..664084021c 100644 --- a/lib/rbcodec/metadata/mp3data.c +++ b/lib/rbcodec/metadata/mp3data.c | |||
@@ -215,10 +215,9 @@ static bool headers_have_same_type(unsigned long header1, | |||
215 | /* Helper function to read 4-byte in big endian format. */ | 215 | /* Helper function to read 4-byte in big endian format. */ |
216 | static void read_uint32be_mp3data(int fd, unsigned long *data) | 216 | static void read_uint32be_mp3data(int fd, unsigned long *data) |
217 | { | 217 | { |
218 | #ifdef ROCKBOX_BIG_ENDIAN | 218 | *data = 0; |
219 | (void)read(fd, (char*)data, 4); | ||
220 | #else | ||
221 | (void)read(fd, (char*)data, 4); | 219 | (void)read(fd, (char*)data, 4); |
220 | #ifndef ROCKBOX_BIG_ENDIAN | ||
222 | *data = betoh32(*data); | 221 | *data = betoh32(*data); |
223 | #endif | 222 | #endif |
224 | } | 223 | } |