# HG changeset patch # User kostya # Date 1229545027 0 # Node ID 2ebc9b2c7459c28f8e23797312eec001824d04ec # Parent edea96e4367b5a0439f10f1e1741e61d9250a99f add const qualifier to some pointers for input data diff -r edea96e4367b -r 2ebc9b2c7459 rv34.c --- a/rv34.c Wed Dec 17 20:10:15 2008 +0000 +++ b/rv34.c Wed Dec 17 20:17:07 2008 +0000 @@ -1220,7 +1220,7 @@ si1->pts != si2->pts; } -static int rv34_decode_slice(RV34DecContext *r, int end, uint8_t* buf, int buf_size) +static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int buf_size) { MpegEncContext *s = &r->s; GetBitContext *gb = &s->gb; @@ -1352,7 +1352,7 @@ return 0; } -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 - 4) == 1 ? AV_RL32(buf + n*8) : AV_RB32(buf + n*8); @@ -1368,7 +1368,7 @@ SliceInfo si; int i; int slice_count; - uint8_t *slices_hdr = NULL; + const uint8_t *slices_hdr = NULL; int last = 0; /* no supplementary picture */