diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 04:14:04 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 04:14:04 +0000 |
commit | fb2cf1bcf0f97cf3110a4e88098db1b7aa87fda0 (patch) | |
tree | cdc76fff0a04fefebb26975f38335da3af033bcb | |
parent | bd0e945f8e3f9d6c64c58d469e539307a5413253 (diff) | |
download | ffmpeg-fb2cf1bcf0f97cf3110a4e88098db1b7aa87fda0.tar.gz |
const
Originally committed as revision 11724 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/ffv1.c | 2 | ||||
-rw-r--r-- | libavcodec/huffyuv.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index 0131b837cf..d0f2efbfe3 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -936,7 +936,7 @@ static int decode_init(AVCodecContext *avctx) 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 --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index 5868524c02..dddcdf1dba 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -959,7 +959,7 @@ static void draw_slice(HYuvContext *s, int y){ 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 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8 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); |