ac3enc: clean up count_frame_bits() and count_frame_bits_fixed()