From c1760e42d1d1622d0857a276e852349e6ce575ea Mon Sep 17 00:00:00 2001 From: closer-claudio Date: Sat, 21 Nov 2026 17:14:16 -0800 Subject: [PATCH] symphonia: the README says a stream with no audio frame does not open Symphonia 0.6.1 synchronises to the first audio frame while it opens a FLAC stream (symphonia-bundle-flac's demuxer.rs, init_with_metadata: `parser.resync(&mut reader)?`), so a stream of no frames, which `flac` writes for an empty input, fails to open with "unexpected end of file", where `flac -d` writes an empty output and exits 0. That is the library's, and the program reports it as it comes. Run on darwin-arm64 on flac's encoding of an empty input. Co-Authored-By: Claude Fable 5.2 Signed-off-by: closer-claudio --- symphonia/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/symphonia/README.md b/symphonia/README.md index 198de57..33f6023 100644 --- a/symphonia/README.md +++ b/symphonia/README.md @@ -15,7 +15,9 @@ interleaved, signed, little-endian samples at the stream's own bit depth (8, 16, another depth is refused). Symphonia's FLAC decoder left-justifies every depth in 32 bits; the program shifts each sample back. At 32 bits the samples are Symphonia's as it gives them, and Symphonia 0.6.1 gets some 32-bit stereo frames wrong, with no error -(https://github.com/pdeljanov/Symphonia/issues/585): the program does not stand in its way. The stream's parameters go to stderr. Exit status 0 on +(https://github.com/pdeljanov/Symphonia/issues/585): the program does not stand in its way. A stream with +no audio frame does not open: Symphonia looks for the first frame as it opens the stream and +reports `unexpected end of file`, where `flac -d` writes an empty output and exits 0. The stream's parameters go to stderr. Exit status 0 on success, 1 on any error, a frame Symphonia cannot decode included. - `src/main.rs` is the program around the crates, this repository's own.