summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-03-24 12:48:33 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-03-24 12:48:33 +0000
commitf8979dae58a6d280a8667ad35f84567c7aba5498 (patch)
tree6f2317b00f8c343370efa630d383a8b2ca999257 /firmware
parent27539aa8289ce6ee62fbd23afeb431efc1ebc503 (diff)
The Xing flag word wasn't correctly generated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3495 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/mp3data.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/mp3data.c b/firmware/mp3data.c
index c0434791c2..a55d052e1b 100644
--- a/firmware/mp3data.c
+++ b/firmware/mp3data.c
@@ -628,9 +628,9 @@ int create_xing_header(int fd, int startpos, int filesize,
buf[36+1] = 'i';
buf[36+2] = 'n';
buf[36+3] = 'g';
- int2bytes(&buf[36+4], (num_frames?VBR_FRAMES_FLAG:0 |
- filesize?VBR_BYTES_FLAG:0 |
- generate_toc?VBR_TOC_FLAG:0));
+ int2bytes(&buf[36+4], ((num_frames?VBR_FRAMES_FLAG:0) |
+ (filesize?VBR_BYTES_FLAG:0) |
+ (generate_toc?VBR_TOC_FLAG:0)));
index = 36+8;
if(num_frames)
{