# HG changeset patch # User michael # Date 1201881509 0 # Node ID 07eeefc2825fafd4366d72527996d3834b95e451 # Parent 5b44e0210dadad6e30101946bf042e9c05edf4a7 const diff -r 5b44e0210dad -r 07eeefc2825f tscc.c --- a/tscc.c Fri Feb 01 15:57:54 2008 +0000 +++ b/tscc.c Fri Feb 01 15:58:29 2008 +0000 @@ -182,10 +182,10 @@ * Decode a frame * */ -static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) +static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { CamtasiaContext * const c = avctx->priv_data; - unsigned char *encoded = (unsigned char *)buf; + const unsigned char *encoded = buf; unsigned char *outptr; #ifdef CONFIG_ZLIB int zret; // Zlib return code