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) (frame[42] << 8) | frame[43]; filetime = framecount * tpf; + entry->bitrate = VARIABLE_BIT_RATE; } /* We don't care about the file size and the TOC just yet. Maybe 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 @@ #ifndef ID3_H #define ID3_H +#define VARIABLE_BIT_RATE 1 + struct mp3entry { char path[256]; char *title; |