# HG changeset patch # User michael # Date 1201839244 0 # Node ID 5d82b4e8a7f370022b3b2bf6112bea67f182299f # Parent bfb9d5c104a15652061dc1d461c7c7a186b59c12 const diff -r bfb9d5c104a1 -r 5d82b4e8a7f3 ffv1.c --- a/ffv1.c Fri Feb 01 04:11:06 2008 +0000 +++ b/ffv1.c Fri Feb 01 04:14:04 2008 +0000 @@ -936,7 +936,7 @@ return 0; } -static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size){ +static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size){ FFV1Context *f = avctx->priv_data; RangeCoder * const c= &f->c; const int width= f->width; diff -r bfb9d5c104a1 -r 5d82b4e8a7f3 huffyuv.c --- a/huffyuv.c Fri Feb 01 04:11:06 2008 +0000 +++ b/huffyuv.c Fri Feb 01 04:14:04 2008 +0000 @@ -959,7 +959,7 @@ s->last_slice_end= y + h; } -static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size){ +static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size){ HYuvContext *s = avctx->priv_data; const int width= s->width; const int width2= s->width>>1; @@ -972,7 +972,7 @@ s->bitstream_buffer= av_fast_realloc(s->bitstream_buffer, &s->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE); - s->dsp.bswap_buf((uint32_t*)s->bitstream_buffer, (uint32_t*)buf, buf_size/4); + s->dsp.bswap_buf((uint32_t*)s->bitstream_buffer, (const uint32_t*)buf, buf_size/4); if(p->data[0]) avctx->release_buffer(avctx, p);