fix crash bug of sps/pps
Merge pull request #1438 from huili2/EC_crashfix

fix crash bug of sps/pps