avformat/matroskaenc: Avoid "for (int i" syntax for better compatibility