diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 9e5312663c..a6ecaf5432 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -89,7 +89,7 @@ static const int AdaptCoeff2[] = { }; /* 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 @@ static int adpcm_encode_frame(AVCodecContext *avctx, *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;