avformat/mov: move edit list heuristics into mov_build_index()