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.
call this writeFmtpParams