Revision 0dc7df28

View differences:

libavcodec/dca.c
30 30
#include <stddef.h>
31 31
#include <stdio.h>
32 32

  
33
#include "libavutil/intreadwrite.h"
33 34
#include "avcodec.h"
34 35
#include "dsputil.h"
35 36
#include "fft.h"
......
770 771
    for (subindex = 0; subindex < 8; subindex++) {
771 772
        /* Load in one sample from each subband and clear inactive subbands */
772 773
        for (i = 0; i < s->subband_activity[chans]; i++){
773
            if((i-1)&2) s->raXin[i] = -samples_in[i][subindex];
774
            else        s->raXin[i] =  samples_in[i][subindex];
774
            uint32_t v = AV_RN32A(&samples_in[i][subindex]) ^ ((i-1)&2)<<30;
775
            AV_WN32A(&s->raXin[i], v);
775 776
        }
776 777
        for (; i < 32; i++)
777 778
            s->raXin[i] = 0.0;

Also available in: Unified diff