I got tired of malformed SSA-subtitles that are available for DivX-movies on the net, and decided to do this script that fixes the timestamps of the subtitles so that no subtitle overlaps with another (this is extreamly irritating).
Hope this is of use to somebody...