aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rv10.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-01 14:08:35 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-01 14:08:35 +0000
commit16db358520de3074afbde06329840a6a095f5f8c (patch)
tree0352668c798745c578b27e44e162d8d6f39857f7 /libavcodec/rv10.c
parent92ddaf2622380c41e02b84a35b0dcde565ecc57f (diff)
downloadffmpeg-16db358520de3074afbde06329840a6a095f5f8c.tar.gz
const
Originally committed as revision 11741 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv10.c')
-rw-r--r--libavcodec/rv10.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
index b6719eb8da..7ee812a7e0 100644
--- a/libavcodec/rv10.c
+++ b/libavcodec/rv10.c
@@ -597,7 +597,7 @@ static int rv10_decode_end(AVCodecContext *avctx)
}
static int rv10_decode_packet(AVCodecContext *avctx,
- uint8_t *buf, int buf_size)
+ const uint8_t *buf, int buf_size)
{
MpegEncContext *s = avctx->priv_data;
int mb_count, mb_pos, left, start_mb_x;
@@ -711,7 +711,7 @@ static int rv10_decode_packet(AVCodecContext *avctx,
return buf_size;
}
-static int get_slice_offset(AVCodecContext *avctx, uint8_t *buf, int n)
+static int get_slice_offset(AVCodecContext *avctx, const uint8_t *buf, int n)
{
if(avctx->slice_count) return avctx->slice_offset[n];
else return AV_RL32(buf + n*8);
@@ -719,13 +719,13 @@ static int get_slice_offset(AVCodecContext *avctx, uint8_t *buf, int n)
static int rv10_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
- uint8_t *buf, int buf_size)
+ const uint8_t *buf, int buf_size)
{
MpegEncContext *s = avctx->priv_data;
int i;
AVFrame *pict = data;
int slice_count;
- uint8_t *slices_hdr = NULL;
+ const uint8_t *slices_hdr = NULL;
#ifdef DEBUG
av_log(avctx, AV_LOG_DEBUG, "*****frame %d size=%d\n", avctx->frame_number, buf_size);