Gagravarr / VorbisJava

A library for working with Ogg Vorbis files
Apache License 2.0
126 stars 26 forks source link

Fix problem detected when parsing METADATA_BLOCK_HEADER in FLAC file #29

Closed croger42 closed 6 years ago

croger42 commented 6 years ago

Last-metadata-block flag and block type are sometimes wrongly decoded. Example of metadata flac file added to unit test resources. First byte of the METADATA_BLOCK_HEADER contains 2 informations: last block flag, which is the first bit and block type is encoded in the 7 remaining bits.

Gagravarr commented 6 years ago

Thanks for this! Sorry it took so long to review and apply...