It was a horror film called Ghost Ship. It had three segments, and the last one was about a sinking ship where many people died. The movie was released in 1972 and was directed by John Carpenter. It starred Marlon Brando, Alpacino, and Jennifer Garner. You can go to the online video platform to search and watch.