use active SPS parameters instead of other SPS.

use the active SPS parameter, not any other SPS, for picture buffer memory allocation.
Detailed review request can be seen via:
https://rbcommons.com/s/OpenH264/r/112/