added example with matroska, minor fix in Pad class