[FFmpeg-cvslog] r11724 - in trunk/libavcodec: ffv1.c huffyuv.c
michael
subversion
Fri Feb 1 05:14:04 CET 2008
Author: michael
Date: Fri Feb 1 05:14:04 2008
New Revision: 11724
Log:
const
Modified:
trunk/libavcodec/ffv1.c
trunk/libavcodec/huffyuv.c
Modified: trunk/libavcodec/ffv1.c
==============================================================================
--- trunk/libavcodec/ffv1.c (original)
+++ trunk/libavcodec/ffv1.c Fri Feb 1 05:14:04 2008
@@ -936,7 +936,7 @@ static int decode_init(AVCodecContext *a
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;
Modified: trunk/libavcodec/huffyuv.c
==============================================================================
--- trunk/libavcodec/huffyuv.c (original)
+++ trunk/libavcodec/huffyuv.c Fri Feb 1 05:14:04 2008
@@ -959,7 +959,7 @@ static void draw_slice(HYuvContext *s, i
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 *
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);
More information about the ffmpeg-cvslog
mailing list