h264: improve parsing of broken AVC SPS