SIGN IN SIGN UP

gh-117716: Fix wave RIFF padding for data chunks (GH-145237)

wave.Wave_write now writes the required RIFF pad byte when the data chunk
size is odd.

Update RIFF chunk size calculations in both header writing and header
patching so they include the alignment pad byte when present.

Add a regression test in test_wave.py that verifies
odd-sized writes are padded, RIFF size is correct, and roundtrip reads
preserve frame data.
M
Michiel W. Beijen committed
ca064d9b9999657332d8c73b7b4079ce4311ccec
Parent: 69e0a78
Committed by GitHub <noreply@github.com> on 4/15/2026, 12:21:43 PM