Jimmy Garoppolo converted a pair of conversions on third-and-16 to set up Robbie Gould's game-winning 33-yard field goal with no time left and the San Francisco 49ers eliminated the defending NFC champion Los Angeles Rams from playoff contention with a 34-31 victory.

Garoppolo made up for a mostly pedestrian game for the 49ers by delivering two big throws on the final drive after taking his fifth and sixth sacks.

San Francisco's win sets up a Dec. 29 showdown between the Niners and the Seattle Seahawks in Seattle. The Niners are now 12-3, while the Seahawks -- who play the Arizona Cardinals on Sunday -- are 11-3. The Seahawks defeated the 49ers, 27-24,  in overtime Nov. 11.

More From 1460 ESPN