diff options
-rw-r--r-- | firmware/id3.c | 1 | ||||
-rw-r--r-- | firmware/id3.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/firmware/id3.c b/firmware/id3.c index 4a40ff89d9..1b6a6920ae 100644 --- a/firmware/id3.c +++ b/firmware/id3.c | |||
@@ -501,6 +501,7 @@ getsonglength(int fd, struct mp3entry *entry) | |||
501 | (frame[42] << 8) | frame[43]; | 501 | (frame[42] << 8) | frame[43]; |
502 | 502 | ||
503 | filetime = framecount * tpf; | 503 | filetime = framecount * tpf; |
504 | entry->bitrate = VARIABLE_BIT_RATE; | ||
504 | } | 505 | } |
505 | /* We don't care about the file size and the TOC just yet. Maybe | 506 | /* We don't care about the file size and the TOC just yet. Maybe |
506 | another time. */ | 507 | another time. */ |
diff --git a/firmware/id3.h b/firmware/id3.h index 7597dcd0b3..60f660588f 100644 --- a/firmware/id3.h +++ b/firmware/id3.h | |||
@@ -19,6 +19,8 @@ | |||
19 | #ifndef ID3_H | 19 | #ifndef ID3_H |
20 | #define ID3_H | 20 | #define ID3_H |
21 | 21 | ||
22 | #define VARIABLE_BIT_RATE 1 | ||
23 | |||
22 | struct mp3entry { | 24 | struct mp3entry { |
23 | char path[256]; | 25 | char path[256]; |
24 | char *title; | 26 | char *title; |