clamp frame index between 0 and 100,000