Fixing two bugs in the shot boundary detection algorithm.