Video of a California police officer pointing his gun at a passenger for nine minutes during a traffic stop has gone viral.