# HG changeset patch # User michael # Date 1201881869 0 # Node ID b7045a85cd7dd3d17095ff40ed9af8fd679b64b3 # Parent d1cf4f790f3112fe94d7b6187861caf01c657db4 some const diff -r d1cf4f790f31 -r b7045a85cd7d vc1.c --- a/vc1.c Fri Feb 01 16:03:03 2008 +0000 +++ b/vc1.c Fri Feb 01 16:04:29 2008 +0000 @@ -3941,7 +3941,7 @@ */ static int vc1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; @@ -3974,7 +3974,7 @@ buf2 = av_mallocz(buf_size + FF_INPUT_BUFFER_PADDING_SIZE); if(IS_MARKER(AV_RB32(buf))){ /* frame starts with marker and needs to be parsed */ - uint8_t *start, *end, *next; + const uint8_t *start, *end, *next; int size; next = buf;