# HG changeset patch # User michael # Date 1201881411 0 # Node ID 2134a0fc46f3e5a790bb8795ab182d1df9f4a6e8 # Parent 8c7173e5d08c7d2b456650102ba2464f5979ca47 const diff -r 8c7173e5d08c -r 2134a0fc46f3 tiertexseqv.c --- a/tiertexseqv.c Fri Feb 01 15:54:28 2008 +0000 +++ b/tiertexseqv.c Fri Feb 01 15:56:51 2008 +0000 @@ -37,7 +37,7 @@ } SeqVideoContext; -static unsigned char *seq_unpack_rle_block(unsigned char *src, unsigned char *dst, int dst_size) +static const unsigned char *seq_unpack_rle_block(const unsigned char *src, unsigned char *dst, int dst_size) { int i, len, sz; GetBitContext gb; @@ -67,9 +67,9 @@ return src; } -static unsigned char *seq_decode_op1(SeqVideoContext *seq, unsigned char *src, unsigned char *dst) +static const unsigned char *seq_decode_op1(SeqVideoContext *seq, const unsigned char *src, unsigned char *dst) { - unsigned char *color_table; + const unsigned char *color_table; int b, i, len, bits; GetBitContext gb; @@ -107,7 +107,7 @@ return src; } -static unsigned char *seq_decode_op2(SeqVideoContext *seq, unsigned char *src, unsigned char *dst) +static const unsigned char *seq_decode_op2(SeqVideoContext *seq, const unsigned char *src, unsigned char *dst) { int i; @@ -120,7 +120,7 @@ return src; } -static unsigned char *seq_decode_op3(SeqVideoContext *seq, unsigned char *src, unsigned char *dst) +static const unsigned char *seq_decode_op3(SeqVideoContext *seq, const unsigned char *src, unsigned char *dst) { int pos, offset; @@ -133,7 +133,7 @@ return src; } -static void seqvideo_decode(SeqVideoContext *seq, unsigned char *data, int data_size) +static void seqvideo_decode(SeqVideoContext *seq, const unsigned char *data, int data_size) { GetBitContext gb; int flags, i, j, x, y, op; @@ -187,7 +187,7 @@ static int seqvideo_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { SeqVideoContext *seq = avctx->priv_data;