parametric_bit_allocation(s, bap[i][ch], encoded_exp[i][ch],
parametric_bit_allocation(s, bap[i][ch], (INT8 *)encoded_exp[i][ch],
static int bit_alloc(AC3EncodeContext *s,                     UINT8 bap[NB_BLOCKS][AC3_MAX_CHANNELS][N/2],                     UINT8 encoded_exp[NB_BLOCKS][AC3_MAX_CHANNELS][N/2],                     UINT8 exp_strategy[NB_BLOCKS][AC3_MAX_CHANNELS],                     int frame_bits, int csnroffst, int fsnroffst){    int i, ch;    /* compute size */    for(i=0;i<NB_BLOCKS;i++) {        s->mant1_cnt = 0;        s->mant2_cnt = 0;        s->mant4_cnt = 0;        for(ch=0;ch<s->nb_channels;ch++) {            parametric_bit_allocation(s, bap[i][ch], encoded_exp[i][ch],                                       0, s->nb_coefs[ch],                                       (((csnroffst-15) << 4) +                                        fsnroffst) << 2,                                       fgaintab[s->fgaincod[ch]]);            frame_bits += compute_mantissa_size(s, bap[i][ch],                                                  s->nb_coefs[ch]);        }    }#if 0    printf("csnr=%d fsnr=%d frame_bits=%d diff=%d\n",            csnroffst, fsnroffst, frame_bits,            16 * s->frame_size - ((frame_bits + 7) & ~7));#endif    return 16 * s->frame_size - frame_bits;}