aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rv34.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2008-12-17 20:17:07 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2008-12-17 20:17:07 +0000
commit17b17c53f437af03e323d2af5122489acbccd837 (patch)
tree6f7e36dc2516366db9911bae7cef757edc76dfca /libavcodec/rv34.c
parentbb39171beb47fe2982eb099d9ce34a7d39e7364a (diff)
downloadffmpeg-17b17c53f437af03e323d2af5122489acbccd837.tar.gz
add const qualifier to some pointers for input data
Originally committed as revision 16195 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r--libavcodec/rv34.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index 5e2dc03ba5..7792cad565 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -1220,7 +1220,7 @@ static inline int slice_compare(SliceInfo *si1, SliceInfo *si2)
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 @@ av_cold int ff_rv34_decode_init(AVCodecContext *avctx)
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 @@ int ff_rv34_decode_frame(AVCodecContext *avctx,
SliceInfo si;
int i;
int slice_count;
- uint8_t *slices_hdr = NULL;
+ const uint8_t *slices_hdr = NULL;
int last = 0;
/* no supplementary picture */