fix up the hanlding for ebml/matroska streams