Mercurial > libavcodec.hg
changeset 6230:612fc0c37427 libavcodec
const
author | michael |
---|---|
date | Fri, 01 Feb 2008 04:02:28 +0000 |
parents | 042a48b6de72 |
children | 6d95434fa51a |
files | cinepak.c |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/cinepak.c Fri Feb 01 03:59:06 2008 +0000 +++ b/cinepak.c Fri Feb 01 04:02:28 2008 +0000 @@ -59,7 +59,7 @@ DSPContext dsp; AVFrame frame; - unsigned char *data; + const unsigned char *data; int size; int width, height; @@ -72,9 +72,9 @@ } CinepakContext; static void cinepak_decode_codebook (cvid_codebook_t *codebook, - int chunk_id, int size, uint8_t *data) + int chunk_id, int size, const uint8_t *data) { - uint8_t *eod = (data + size); + const uint8_t *eod = (data + size); uint32_t flag, mask; int i, n; @@ -121,9 +121,9 @@ } static int cinepak_decode_vectors (CinepakContext *s, cvid_strip_t *strip, - int chunk_id, int size, uint8_t *data) + int chunk_id, int size, const uint8_t *data) { - uint8_t *eod = (data + size); + const uint8_t *eod = (data + size); uint32_t flag, mask; cvid_codebook_t *codebook; unsigned int x, y; @@ -264,9 +264,9 @@ } static int cinepak_decode_strip (CinepakContext *s, - cvid_strip_t *strip, uint8_t *data, int size) + cvid_strip_t *strip, const uint8_t *data, int size) { - uint8_t *eod = (data + size); + const uint8_t *eod = (data + size); int chunk_id, chunk_size; /* coordinate sanity checks */ @@ -317,7 +317,7 @@ static int cinepak_decode (CinepakContext *s) { - uint8_t *eod = (s->data + s->size); + const uint8_t *eod = (s->data + s->size); int i, result, strip_size, frame_flags, num_strips; int y0 = 0; int encoded_buf_size; @@ -414,7 +414,7 @@ static int cinepak_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { CinepakContext *s = avctx->priv_data;