Get pps sps info from buffer

some issues should be fixed