summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-01 14:36:33 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-01 14:36:33 +0000
commit81ef51e669ca221395657f2b817b4fd162f2d9a7 (patch)
tree9921b89d05632521ded812f27e8856907b262dc9 /libavcodec/adpcm.c
parenta8a8f204f09aeb2535dcc5aa3778e0d291d6786a (diff)
const
Originally committed as revision 11750 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r--libavcodec/adpcm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index e5bae273ee..eadcfaedd3 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -841,7 +841,7 @@ static void xa_decode(short *out, const unsigned char *in,
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 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
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 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
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;