mp3agic
mp3agic copied to clipboard
Negative length for some files
Im writing a program which uses mp3agic as the library for reading/writing ID3 tags, and it works very fine. However, I just get a strange behaviour with the length of some files getting negative or zero values for some files while in the many of them the length is the right one. In this terminal output I just call
System.out.println(mp3File.getFilename()+" - "+mp3File.getLengthInSeconds());
And the right lenght
I tried to delete, overwrite, and write the ID3 tags by the way but I still get these non-valid lengths. I scanned all my entire library (+9200 files) and apart of the files in the screenshots, i get negative or zero values in 7 files that have a lenght over 60 minutes (but not all the files over 60), and in one entire album more. By the way, the Mike Oldfield's Tubular Bells II and the other entire album are below ~100 kbps, maybe this is a hint for find the bug. Have anyone noticed this? Thanks in advance