I get an access violation (0xC0000005) with one of my mp3 files at about 2/3rds in the song with seekData(). It is reproducable, doesn’t occur with other files I tested with. I tried both a one year old version and just the latest stable release (4.12.06) with the same result.
I tried with a try/catch but this doesn’t work – I assume it may be another thread that crashes?
It’s not so important if it doesn’t work with a few files (let’s say it’s somehow corrupted?) but I’d really like to avoid a complete crash.
Background: I’m writing an mp3 player and recently added a visualization of the song.
Before playing the song (as a stream) I now parse it once before to compute a rough power spectrum. The mp3 file in question is playing fine.
I use WinXP (32 bit) and VS2005.
Thanks for help!
- vaifrax asked 10 years ago
this is the file in question:
As I said, assuming the file is corrupted it would be great if an exception was thrown or something similar.
Thanks for your effort!
- vaifrax answered 10 years ago
Sounds like a corrupted mp3 with bits that cause low level mpeg tables to go out of bounds or something. Putting checks in at that level slows down the decoder but we have done it before.
You should give us a link to the mp3 and the seek position and I can have a look at it.
Please login first to submit.