diff adpcm.c @ 1559:c4e19184eff0 libavcodec

100l
author alex
date Wed, 22 Oct 2003 22:10:22 +0000
parents bcb30ec7e86f
children bc4b13ca74de
line wrap: on
line diff
--- a/adpcm.c	Wed Oct 22 19:15:55 2003 +0000
+++ b/adpcm.c	Wed Oct 22 22:10:22 2003 +0000
@@ -89,7 +89,7 @@
 };
 
 /* These are for CD-ROM XA ADPCM */
-const static int xa_adpcm_table[5][2] = {
+static const int xa_adpcm_table[5][2] = {
    {   0,   0 },
    {  60,   0 },
    { 115, -52 },
@@ -235,7 +235,7 @@
             *dst++ = 0; /* unknown */
             samples++;
             if (avctx->channels == 2) {
-                c->status[1].prev_sample = (signed short)samples[0];
+                c->status[1].prev_sample = (signed short)samples[1];
 /*                c->status[1].step_index = 0; */
                 *dst++ = (c->status[1].prev_sample) & 0xFF;
                 *dst++ = (c->status[1].prev_sample >> 8) & 0xFF;