Revision 9d853336

View differences:

libavcodec/ac3enc.c
339 339
    /* shift to simplify computations */
340 340
    for (i = 0; i < MDCT_SAMPLES/4; i++)
341 341
        rot[i] = -in[i + 3*MDCT_SAMPLES/4];
342
    for (;i < MDCT_SAMPLES; i++)
343
        rot[i] =  in[i -   MDCT_SAMPLES/4];
342
    memcpy(&rot[MDCT_SAMPLES/4], &in[0], 3*MDCT_SAMPLES/4*sizeof(*in));
344 343

  
345 344
    /* pre rotation */
346 345
    for (i = 0; i < MDCT_SAMPLES/4; i++) {

Also available in: Unified diff