avformat/dashenc: addition of segment index correction logic