Commit f637b3a7 authored by michael's avatar michael

const


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11724 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 910ca50c
...@@ -936,7 +936,7 @@ static int decode_init(AVCodecContext *avctx) ...@@ -936,7 +936,7 @@ static int decode_init(AVCodecContext *avctx)
return 0; 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; FFV1Context *f = avctx->priv_data;
RangeCoder * const c= &f->c; RangeCoder * const c= &f->c;
const int width= f->width; const int width= f->width;
......
...@@ -959,7 +959,7 @@ static void draw_slice(HYuvContext *s, int y){ ...@@ -959,7 +959,7 @@ static void draw_slice(HYuvContext *s, int y){
s->last_slice_end= y + h; 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; HYuvContext *s = avctx->priv_data;
const int width= s->width; const int width= s->width;
const int width2= s->width>>1; const int width2= s->width>>1;
...@@ -972,7 +972,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8 ...@@ -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->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]) if(p->data[0])
avctx->release_buffer(avctx, p); avctx->release_buffer(avctx, p);
......
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