Avoiding duplicate and allowing unset of codec parameter

Avoiding duplicate and allowing unset of codec parameter.

This allows unsetting Opus FEC or other codec parameter. This also avoids duplication.
This should probably be called getCodecPayloadType and the one below changed to getCodecPayloadTypeFromLine.

"find" implies that it returns an index, which isn't the case here.