LOS ANGELES — The Walt Disney Company said on Tuesday that its quarterly profit totaled $2.25 billion, a 22 percent increase from the year-ago period, helped in large part by the success of its Marvel franchise.

That profit translated to $1.28 a share, well ahead of the $1.17 a share that analysts had expected. Revenue totaled $12.47 billion for the quarter, an 8 percent increase.

Strong domestic theme park attendance and a fourth consecutive profitable quarter at Disney’s video game division contributed to the outsize results. But a primary factor in the better performance appeared to be Marvel Entertainment, which Disney acquired in 2009.

“Captain America: The Winter Soldier,” which has taken in $713.6 million worldwide since its April debut, bolstered Walt Disney Studios, where operating income more than doubled. Rerun sales of a TV drama, “Marvel’s Agents of S.H.I.E.L.D.,” helped lift operating income at Disney’s broadcast division by 66 percent.