mp3agic icon indicating copy to clipboard operation
mp3agic copied to clipboard

Negative length for some files

Open octaviospain opened this issue 9 years ago • 0 comments

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());

captura de pantalla 2015-06-20 a las 16 50 06

And the right lenght captura de pantalla 2015-06-20 a las 16 49 47

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

octaviospain avatar Jun 20 '15 16:06 octaviospain