Revision 00a254b7 libavcodec/adpcm.c

View differences:

libavcodec/adpcm.c
537 537
            c->status[i].prev_sample = (signed short)samples[i];
538 538
        }
539 539

  
540
        for (i=0; i<avctx->frame_size; i++) {
540
        for (i=1; i<avctx->frame_size; i++) {
541 541
            put_bits(&pb, 4, adpcm_ima_compress_sample(&c->status[0], samples[avctx->channels*i]) & 0xF);
542 542
            if (avctx->channels == 2)
543 543
                put_bits(&pb, 4, adpcm_ima_compress_sample(&c->status[1], samples[2*i+1]) & 0xF);

Also available in: Unified diff