Revision bf75ac57 libavcodec/ra288.c

View differences:

libavcodec/ra288.c
141 141
               float *st2, const float *table)
142 142
{
143 143
    unsigned int x;
144
    const float *fp;
145 144
    float buffer1[37];
146 145
    float buffer2[37];
147 146
    float work[111];
148 147

  
149 148
    /* rotate and multiply */
150
    fp = st1 + i;
151
    for (x=0; x < n + i + j; x++) {
152
        if (x == n + j)
153
            fp=in;
154
        st1[x] = *(fp++);
155
        work[x] = table[x] * st1[x];
156
    }
149
    memmove(st1        , st1 + i, (n + j)*sizeof(*st1));
150
    memcpy (st1 + n + j, in     , i      *sizeof(*st1));
151

  
152
    colmult(work, table, st1, n + i + j);
157 153

  
158 154
    prodsum(buffer1, work + n    , i, n);
159 155
    prodsum(buffer2, work + n + i, j, n);

Also available in: Unified diff