Refactor RTX video codec and payload type assignment

We want to reuse some of this functionality for the new video codec
factories, but not of all it, so this CL refactors out what we want to
reuse to a static function.

BUG=webrtc:7925

Review-Url: https://codereview.webrtc.org/3010743002
Cr-Original-Commit-Position: refs/heads/master@{#19628}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 6ed63255cab783e7dbeea8a8deadfc27fa6abde7
1 file changed