add checks for spsid and ppsid

Review is at https://rbcommons.com/s/OpenH264/r/132/