Commits
Commits on
b0cfde89c4ed03aa7af4e38b6ce8a36fca8da7b6Filtered to tools/golden/src/encode_audio.rsClear filterToday
B11: ec-alac encoder validates input, no panicsAhmet Kaan Gümüş · 4aa9f94
B11: ec-alac encoder validates input, no panics send_frame checked neither channel count nor plane length: a short or missing plane panicked on indexing (planar) or was silently truncated (interleaved). Now channel count and every sample read go through sample_at(), returning Corrupt/Unsupported. encode_frame returns Result and rejects n > frame_length (spec B11; the cookie declares frame_length as the per-frame maximum, so a larger frame is a non-conformant stream). Output for valid input is unchanged; callers in tools/golden and tools/ec-bench updated. Verify: ec-alac encode/round-trip tests and alac golden (orchestrator).