Open hajimehoshi opened 7 years ago
I have the same issue with a different mp3, created by audacity.
FYI I did a massive refactor and cleanup of PDMP3 and created a new library called OpenMP3, as it has a completley different (fully object orientated) interface. These overflow bugs don't occur in OpenMP3.
Interesting. BTW, I have developed a Go version of MP3 decoder based on PDMP3. https://github.com/hajimehoshi/go-mp3
Probably this is the cause of https://github.com/technosaurus/PDMP3/issues/7 . I don't know how to treat such indices.
@audioboy77 @hajimehoshi Looks like this code have multiple bugs and needs testing. I've prepared some test vectors to cover all cases: https://github.com/lieff/minimp3/tree/master/vectors FFmpeg fate test vectors definitely not enough.
The given
sfb
can be 21 or 12, which exceeds as an index ofg_main_data.scalefac_l[gr][ch]
org_main_data.scalefac_s[gr][ch]
.I tested with an MP3 file at http://publicdomain4u.com/new-sound-for-an-old-baseball-classic