naudio / NLayer

MPEG 1 & 2 Decoder for Layers 1, 2, & 3
MIT License
124 stars 30 forks source link

Correct lsfRatio table access according to jLayer #29

Open stone-SJH opened 10 months ago

stone-SJH commented 10 months ago

I tried to open an mp3 file with stereo but got System.IndexOutOfRangeException when accessing _lsfRatio table.

This pr trying to fix this issue according to jLayer implementation(https://github.com/umjammer/jlayer/blob/master/src/main/java/javazoom/jl/decoder/LayerIIIDecoder.java#L797)