Fix possible divide by zero.

Discovered using auto-profile with test file "NAO Kinect control.wmv"