Revision ac05f903 libavcodec/ac3enc_float.c

View differences:

libavcodec/ac3enc_float.c
102 102
}
103 103

  
104 104

  
105
/**
106
 * Scale MDCT coefficients from float to 24-bit fixed-point.
107
 */
108
static void scale_coefficients(AC3EncodeContext *s)
109
{
110
    int i;
111
    for (i = 0; i < AC3_MAX_COEFS * AC3_MAX_BLOCKS * s->channels; i++)
112
        s->fixed_coef_buffer[i] = SCALE_FLOAT(s->mdct_coef_buffer[i], 24);
113
}
114

  
115

  
105 116
AVCodec ac3_encoder = {
106 117
    "ac3",
107 118
    AVMEDIA_TYPE_AUDIO,

Also available in: Unified diff