Fixed calc_output_scale with NO_OUTPUT_SCALE flag set.