pylon / streamp3

Streaming MP3 decoder for Python
Apache License 2.0
28 stars 2 forks source link

fix incorrect mp3 frame size #7

Closed brentspell closed 4 years ago

brentspell commented 4 years ago

The mp3 frame size was being calculated incorrectly for MPEG-2.5 streams and multi-channel streams, since the number of channels does not affect the size of the encoded frame (channels are factored into the bit rate). These changes correctly calculate the encoded frame size for multi-channel streams and add support for legacy MPEG-2.5 streams.