motion_est_template: Fix undefined left shift of negative number