ac: use the common helper ac_apply_fmask_to_sample