matroskadec: introduce resync function.