Revision 1890c2ac libavcodec/wmaenc.c

View differences:

libavcodec/wmaenc.c
92 92
        memcpy(s->output, s->frame_out[channel], sizeof(float)*window_len);
93 93
        j = channel;
94 94
        for (i = 0; i < len; i++, j += avctx->channels){
95
            s->output[i+window_len]  = audio[j] / n * win[i];
96
            s->frame_out[channel][i] = audio[j] / n * win[window_len - i - 1];
95
            s->output[i+window_len]  = audio[j] / n * win[window_len - i - 1];
96
            s->frame_out[channel][i] = audio[j] / n * win[i];
97 97
        }
98 98
        ff_mdct_calc(&s->mdct_ctx[window_index], s->coefs[channel], s->output, s->mdct_tmp);
99 99
    }

Also available in: Unified diff