# HG changeset patch # User michael # Date 1201876593 0 # Node ID ac7171cbf9314ca90a840c9a12d34cb6948ae3bc # Parent 6412f1a039baf5f0fb3cab7bd02ad73733a06e8f const diff -r 6412f1a039ba -r ac7171cbf931 adpcm.c --- a/adpcm.c Fri Feb 01 14:30:35 2008 +0000 +++ b/adpcm.c Fri Feb 01 14:36:33 2008 +0000 @@ -841,7 +841,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { ADPCMContext *c = avctx->priv_data; ADPCMChannelStatus *cs; @@ -849,7 +849,7 @@ int block_predictor[2]; short *samples; short *samples_end; - uint8_t *src; + const uint8_t *src; int st; /* stereo */ /* DK3 ADPCM accounting variables */ @@ -1214,7 +1214,7 @@ uint8_t shift; unsigned int channel; uint16_t *samplesC; - uint8_t *srcC; + const uint8_t *srcC; samples_in_chunk = (big_endian ? bytestream_get_be32(&src) : bytestream_get_le32(&src)) / 28;