1
0
Fork 0
forked from len0rd/rockbox

Fix an off-by-one bug when dealing with genres in MP4 files.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12754 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2007-03-13 22:16:12 +00:00
parent 156f440414
commit a35a38b0ce

View file

@ -1353,7 +1353,7 @@ static bool read_mp4_tags(int fd, struct mp3entry* id3,
unsigned short genre;
read_mp4_tag(fd, size, (char*) &genre, sizeof(genre));
id3->genre_string = id3_get_num_genre(betoh16(genre));
id3->genre_string = id3_get_num_genre(betoh16(genre) - 1);
}
break;