ffv1: fix calculating slice dimensions for version 2