# HG changeset patch # User michael # Date 1201837155 0 # Node ID b42a510e0939ac33bd7c751605c6fca2fa8daedd # Parent 0ed0d9d578ad68256455d07a490e318762b68410 const diff -r 0ed0d9d578ad -r b42a510e0939 aasc.c --- a/aasc.c Fri Feb 01 03:34:43 2008 +0000 +++ b/aasc.c Fri Feb 01 03:39:15 2008 +0000 @@ -58,7 +58,7 @@ static int aasc_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { AascContext *s = avctx->priv_data; int stream_ptr = 4; diff -r 0ed0d9d578ad -r b42a510e0939 alac.c --- a/alac.c Fri Feb 01 03:34:43 2008 +0000 +++ b/alac.c Fri Feb 01 03:39:15 2008 +0000 @@ -107,7 +107,7 @@ static int alac_set_info(ALACContext *alac) { - unsigned char *ptr = alac->avctx->extradata; + const unsigned char *ptr = alac->avctx->extradata; ptr += 4; /* size */ ptr += 4; /* alac */ @@ -439,7 +439,7 @@ static int alac_decode_frame(AVCodecContext *avctx, void *outbuffer, int *outputsize, - uint8_t *inbuffer, int input_buffer_size) + const uint8_t *inbuffer, int input_buffer_size) { ALACContext *alac = avctx->priv_data; diff -r 0ed0d9d578ad -r b42a510e0939 sp5xdec.c --- a/sp5xdec.c Fri Feb 01 03:34:43 2008 +0000 +++ b/sp5xdec.c Fri Feb 01 03:39:15 2008 +0000 @@ -32,13 +32,14 @@ static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { #if 0 MJpegDecodeContext *s = avctx->priv_data; #endif const int qscale = 5; - uint8_t *buf_ptr, *buf_end, *recoded; + const uint8_t *buf_ptr, *buf_end; + uint8_t *recoded; int i = 0, j = 0; if (!avctx->width || !avctx->height)