I'm not an expert in anime, but I heard that OP/ED are often encoded with different frame rate (constant, not variable, but different).
There's an unknown muxing problem with some mkv's now. The resulting mkv generated with ffmpeg is somehow broken - this's why I asked about manual remuxing in MKVToolNix.