Revision b5ec6383 libavcodec/wmadec.c

View differences:

libavcodec/wmadec.c
789 789
    /* convert frame to integer */
790 790
    n = s->frame_len;
791 791
    incr = s->nb_channels;
792
        for (ch = 0; ch < MAX_CHANNELS; ch++)
793
            output[ch] = s->frame_out[ch];
794
        s->dsp.float_to_int16_interleave(samples, output, n, incr);
795
        for(ch = 0; ch < incr; ch++) {
796
            /* prepare for next block */
797
            memmove(&s->frame_out[ch][0], &s->frame_out[ch][n], n * sizeof(float));
798
        }
792
    for (ch = 0; ch < MAX_CHANNELS; ch++)
793
        output[ch] = s->frame_out[ch];
794
    s->dsp.float_to_int16_interleave(samples, output, n, incr);
795
    for (ch = 0; ch < incr; ch++) {
796
        /* prepare for next block */
797
        memmove(&s->frame_out[ch][0], &s->frame_out[ch][n], n * sizeof(float));
798
    }
799 799

  
800 800
#ifdef TRACE
801 801
    dump_shorts(s, "samples", samples, n * s->nb_channels);

Also available in: Unified diff