Padding missing when extracting PCM data with mkvextract
Created by: matsp888
When extracting a track with PCM data to RIFF WAVE format, as in "mkvextract tracks file.mkv 0:file.wav", if a chunk is an uneven number of bytes, it should be padded with a zero byte. From "Multimedia Programming Interface and Data Specifications" by IBM and Microsoft: "If the chunk size is an odd number of bytes, a pad byte with value zero is written after ckData." Note that this does NOT affect the ckSize field in the chunk header, since if it did, it would be impossible to know whether the actual data is an even or odd number of bytes.
Edited by Moritz Bunkus