audiocogs / flac.js

FLAC decoder in JavaScript
http://audiocogs.org/codecs/flac/
549 stars 46 forks source link

Fix for issue #20 #22

Open richardlevy opened 9 years ago

richardlevy commented 9 years ago

This change stops the blockHeader stream data from being discarded if you've read enough data to determine the blockHeader type and size, but there's not enough available to read the blockHeader data.