LOS ANGELES -- Louis Zamperini, an Olympic distance runner and World War II veteran who survived 47 days on a raft in the Pacific after his bomber crashed, then endured two years in Japanese prison camps, has died. He was 97.

Zamperini's death was confirmed by Universal Pictures studio spokesman Michael Moses. A family statement released early Thursday said Zamperini had been suffering from pneumonia.

"After a 40-day long battle for his life, he peacefully passed away in the presence of his entire family, leaving behind a legacy that has touched so many lives," the family statement said. "His indomitable courage and fighting spirit were never more apparent than in these last days."

Zamperini is the subject of Laura Hillenbrand's best-selling book "Unbroken: A World War II Story of Survival, Resilience, and Redemption," which is being made into a movie directed by Angelina Jolie and is scheduled for a December release by Universal.

"It is a loss impossible to describe," Jolie said in a statement. "We are all so grateful for how enriched our lives are for having known him. We will miss him terribly."

A high school and University of Southern California track star, Zamperini competed in the 5,000-meter run at the 1936 Berlin Olympics. He finished eighth but caught attention by running the final lap in 56 seconds.

In World War II, he was a bombardier on a U.S. Army Air Forces bomber that crashed in the Pacific Ocean during a reconnaissance mission. He and one of the other surviving crew members drifted for 47 days on a raft in shark-infested waters before being captured by Japanese forces. He spent more than two years as a prisoner of war, surviving torture.

In May, Zamperini was named grand marshal of the 2015 Rose Parade in Pasadena, California, which next New Year's Day will feature the theme "Inspiring Stories."

In accepting the honor, Zamperini, wearing a USC cap, recalled that Hillenbrand, in researching the book, asked to interview his friends from college and the Army.

"And now after the book was finished all of my college buddies are dead, all of my war buddies are dead. It's sad to realize that you've lost all your friends," he said. "But I think I made up for it. I made a new friend -- Angelina Jolie. And the gal really loves me, she hugs me and kisses me, so I can't complain."