use the parameters set by app instead of the default values

approved at: https://rbcommons.com/s/OpenH264/r/389/

1. set -1 as the default value of iNumRefFrame.  -1 means that encoder will select the the number of reference frames automatically.
2. use the parameters set by app instead of the default values