summaryrefslogtreecommitdiff
path: root/firmware/id3.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/id3.c')
-rw-r--r--firmware/id3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/id3.c b/firmware/id3.c
index b101aee407..b363adc0dd 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -490,13 +490,15 @@ static int getsonglength(int fd, struct mp3entry *entry)
490 frame[34] == 'n' && 490 frame[34] == 'n' &&
491 frame[35] == 'g') 491 frame[35] == 'g')
492 { 492 {
493 /* Yes, it is a VBR file */
494 entry->vbr = true;
495
493 if(frame[39] & 0x01) /* Is the frame count there? */ 496 if(frame[39] & 0x01) /* Is the frame count there? */
494 { 497 {
495 framecount = (frame[40] << 24) | (frame[41] << 16) | 498 framecount = (frame[40] << 24) | (frame[41] << 16) |
496 (frame[42] << 8) | frame[43]; 499 (frame[42] << 8) | frame[43];
497 500
498 filetime = framecount * tpf; 501 filetime = framecount * tpf;
499 entry->bitrate = VARIABLE_BIT_RATE;
500 } 502 }
501 /* We don't care about the file size and the TOC just yet. Maybe 503 /* We don't care about the file size and the TOC just yet. Maybe
502 another time. */ 504 another time. */