Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Lacing and DiscardPadding #2100
as I have already mentioned in #2099 mkvmerge uses lacing in conjunction with DiscardPadding. This is probably no good idea because it is not precisely defined to which blocks the DiscardPadding belongs and because support for both in the same block will probably never be very widespread. Even mkvmerge has bugs in this regard: After I extract the audio from test224.x264-Opus.mkv I remux it with lacing disabled and get this:
Muxing this Matroska-file with lacing gives:
So in both block-laces one the DiscardPadding actually applies to the first packet in the lace, not the last as I would guess if I had to guess based upon the spec.
Now all the packets that come from a lace with DiscardPadding get the DiscardPadding value from the lace.