Fix resuming when transcoding with matroska streaming.

Thanks @LongChair