changeset 1559:c4e19184eff0 libavcodec

100l
author alex
date Wed, 22 Oct 2003 22:10:22 +0000
parents 3385f315df6e
children 07dac732074a
files adpcm.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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;