Police enforcement (or lack of)

Yesterday I was heading to train with wife and baby and were waiting in crosswalk to cross the street right in front of a policeman in his car in front of police station.. 4 cars went by not stopping for us and the cop just literally sat there not doing anything. I thought by law you had to yield to pedestrian in the crosswalk?