[PATCH] libaudtag: Verify tag length info against decoder length
Some mp3 files have wrong TLEN tags, one example is:
Which has an extremely wrong TLEN tag, but I've also seen mp3 files where
TLEN is set the album length instead of the track length.
To stop audacious from showing a completely wrong length in these cases add
some FIELD_LENGTH sanity checks. This fixes both issues for me.
#3 Updated by Hans de Goede about 6 years ago
#440 is not relevant in this case, in both my examples the mp3 files contain a purely integer TLEN field, it is just that the content is bogus.
About the broken link, that is my bad I copy pasted from a terminal and only copy and pasted the first 80 chars, here is the proper link:
As you can see this has a TLEN field with a value which is an integer, but other then that is utter non sense. Note the other troublesome files which I have which I cannot share have a more sane TLEN, it contains the length of the entire album instead of the individual songs, so still wrong :|
The attached patch fixes both.