Court of Appeal says the trial judge erred by imposing only five strokes when the minimum should be 12 for male offenders under 50.