Mercurial > libavcodec.hg
changeset 6254:5b6f78cd3d50 libavcodec
const
author | michael |
---|---|
date | Fri, 01 Feb 2008 14:16:08 +0000 |
parents | cffdb71f0930 |
children | 80148ad7bb3c |
files | sunrast.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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");