ac3: validate end in ff_ac3_bit_alloc_calc_mask