Commit d31522b8 authored by Michael Niedermayer's avatar Michael Niedermayer

const

Originally committed as revision 11720 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1a2c94cb
...@@ -59,7 +59,7 @@ typedef struct CinepakContext { ...@@ -59,7 +59,7 @@ typedef struct CinepakContext {
DSPContext dsp; DSPContext dsp;
AVFrame frame; AVFrame frame;
unsigned char *data; const unsigned char *data;
int size; int size;
int width, height; int width, height;
...@@ -72,9 +72,9 @@ typedef struct CinepakContext { ...@@ -72,9 +72,9 @@ typedef struct CinepakContext {
} CinepakContext; } CinepakContext;
static void cinepak_decode_codebook (cvid_codebook_t *codebook, 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; uint32_t flag, mask;
int i, n; int i, n;
...@@ -121,9 +121,9 @@ static void cinepak_decode_codebook (cvid_codebook_t *codebook, ...@@ -121,9 +121,9 @@ static void cinepak_decode_codebook (cvid_codebook_t *codebook,
} }
static int cinepak_decode_vectors (CinepakContext *s, cvid_strip_t *strip, 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; uint32_t flag, mask;
cvid_codebook_t *codebook; cvid_codebook_t *codebook;
unsigned int x, y; unsigned int x, y;
...@@ -264,9 +264,9 @@ static int cinepak_decode_vectors (CinepakContext *s, cvid_strip_t *strip, ...@@ -264,9 +264,9 @@ static int cinepak_decode_vectors (CinepakContext *s, cvid_strip_t *strip,
} }
static int cinepak_decode_strip (CinepakContext *s, 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; int chunk_id, chunk_size;
/* coordinate sanity checks */ /* coordinate sanity checks */
...@@ -317,7 +317,7 @@ static int cinepak_decode_strip (CinepakContext *s, ...@@ -317,7 +317,7 @@ static int cinepak_decode_strip (CinepakContext *s,
static int cinepak_decode (CinepakContext *s) 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 i, result, strip_size, frame_flags, num_strips;
int y0 = 0; int y0 = 0;
int encoded_buf_size; int encoded_buf_size;
...@@ -414,7 +414,7 @@ static int cinepak_decode_init(AVCodecContext *avctx) ...@@ -414,7 +414,7 @@ static int cinepak_decode_init(AVCodecContext *avctx)
static int cinepak_decode_frame(AVCodecContext *avctx, static int cinepak_decode_frame(AVCodecContext *avctx,
void *data, int *data_size, void *data, int *data_size,
uint8_t *buf, int buf_size) const uint8_t *buf, int buf_size)
{ {
CinepakContext *s = avctx->priv_data; CinepakContext *s = avctx->priv_data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment