use active SPS parameters instead of other SPS.
Merge pull request #347 from huili2/active_sps_ref_size

use active SPS parameters instead of other SPS.