# HG changeset patch # User michael # Date 1201875368 0 # Node ID 5b6f78cd3d50c2951504bda2d2d9e5e20cb23daf # Parent cffdb71f0930550b0f1e5e93cf47583e43a493e2 const diff -r cffdb71f0930 -r 5b6f78cd3d50 sunrast.c --- a/sunrast.c Fri Feb 01 14:15:10 2008 +0000 +++ b/sunrast.c Fri Feb 01 14:16:08 2008 +0000 @@ -42,12 +42,13 @@ } static int sunrast_decode_frame(AVCodecContext *avctx, void *data, - int *data_size, uint8_t *buf, int buf_size) { + int *data_size, const uint8_t *buf, int buf_size) { SUNRASTContext * const s = avctx->priv_data; AVFrame *picture = data; AVFrame * const p = &s->picture; unsigned int w, h, depth, type, maptype, maplength, stride, x, y, len, alen; - uint8_t *ptr, *bufstart = buf; + uint8_t *ptr; + const uint8_t *bufstart = buf; if (AV_RB32(buf) != 0x59a66a95) { av_log(avctx, AV_LOG_ERROR, "this is not sunras encoded data\n");