# HG changeset patch # User michael # Date 1201882396 0 # Node ID d256d072f23db646dd6e94dba7b32b11f1a7736e # Parent 67e4586d3c1b44d0a38d11948b65847f4af27708 const diff -r 67e4586d3c1b -r d256d072f23d vqavideo.c --- a/vqavideo.c Fri Feb 01 16:12:00 2008 +0000 +++ b/vqavideo.c Fri Feb 01 16:13:16 2008 +0000 @@ -104,7 +104,7 @@ DSPContext dsp; AVFrame frame; - unsigned char *buf; + const unsigned char *buf; int size; uint32_t palette[PALETTE_COUNT]; @@ -202,7 +202,7 @@ return; \ } -static void decode_format80(unsigned char *src, int src_size, +static void decode_format80(const unsigned char *src, int src_size, unsigned char *dest, int dest_size, int check_size) { int src_index = 0; @@ -567,7 +567,7 @@ static int vqa_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { VqaContext *s = avctx->priv_data;