Revision d8b2d834 libavcodec/adpcm.c

View differences:

libavcodec/adpcm.c
648 648
                    *dst++ = buf[0][i] | (buf[1][i] << 4);
649 649
            }
650 650
        } else
651
        for (; n>0; n--) {
652
            for(i = 0; i < avctx->channels; i++) {
653
                int nibble;
654
                nibble  = adpcm_yamaha_compress_sample(&c->status[i], samples[i]);
655
                nibble |= adpcm_yamaha_compress_sample(&c->status[i], samples[i+avctx->channels]) << 4;
656
                *dst++ = nibble;
657
            }
658
            samples += 2 * avctx->channels;
651
        for (n *= avctx->channels; n>0; n--) {
652
            int nibble;
653
            nibble  = adpcm_yamaha_compress_sample(&c->status[ 0], *samples++);
654
            nibble |= adpcm_yamaha_compress_sample(&c->status[st], *samples++) << 4;
655
            *dst++ = nibble;
659 656
        }
660 657
        break;
661 658
    default:

Also available in: Unified diff