You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
externcrate flac;use flac::{ByteStream,Stream};fnmain(){let s = Stream::<ByteStream>::from_buffer(b"fLaC\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00H\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\\");ifletOk(mut stream) = s {let _ = stream.info();let _ = stream.metadata();letmut iter = stream.iter::<i8>();while iter.next().is_some(){}}}
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', /root/.cargo/git/checkouts/flac-34fb57da42139a77/9549bf8/src/utility/macros.rs:9
We have bytes fLaC followed by a header (big-endian): 0x01, 0x00, 0x00, 0x00. Per 8.1 this is a Padding (0x01) metadata block. Per sections 8 and 8.2 the first metadata block must be StreamInfo (i.e. first byte 0x00).
Activity
j-n-f commentedon Nov 9, 2025
https://datatracker.ietf.org/doc/rfc9639/
We have bytes
fLaCfollowed by a header (big-endian):0x01, 0x00, 0x00, 0x00. Per8.1this is aPadding(0x01) metadata block. Per sections8and8.2the first metadata block must beStreamInfo(i.e. first byte0x00).With that said, this crate hasn't seen activity for nearly a decade. It may be better to try https://github.com/tuffy/flac-codec.