Commit Graph

1 Commits

Author SHA1 Message Date
Moritz Bunkus
2cac968f95 MPEG TS: remove alignment bytes for Blu-ray PCM audio with odd channel count
On Blu-rays PCM audio with an odd number of channels will still contain
empty bytes for an extra alignment channel (e.g. with 3 channels at 24
bits/sample the source actually contains 3+1channels * 24bits/channel /
8bits/byte = 4 * 3bytes = 12 bytes.

That extra "channel" is located after all the others and only contains 0
bytes.

mkvmerge will now simply remove these extra bytes. Otherwise players see
and use more data than the timestamps and track parameters imply causing
both noise artifacts as well as slowed playback.
2016-10-12 20:43:53 +02:00