diff vb.c @ 6218:dfdff1ca78a7 libavcodec

consts I have underestimated this a little, and these are just some ...
author michael
date Fri, 01 Feb 2008 03:26:31 +0000
parents 82ac47c0c6dd
children 48759bfbd073
line wrap: on
line diff
--- a/vb.c	Fri Feb 01 02:36:09 2008 +0000
+++ b/vb.c	Fri Feb 01 03:26:31 2008 +0000
@@ -44,7 +44,7 @@
 
     uint8_t *frame, *prev_frame;
     uint32_t pal[256];
-    uint8_t *stream;
+    const uint8_t *stream;
 } VBDecContext;
 
 static const uint16_t vb_patterns[64] = {
@@ -82,7 +82,7 @@
     return buf >= start && (buf + 4) <= end;
 }
 
-static int vb_decode_framedata(VBDecContext *c, uint8_t *buf, int offset)
+static int vb_decode_framedata(VBDecContext *c, const uint8_t *buf, int offset)
 {
     uint8_t *prev, *cur;
     int blk, blocks, t, blk2;
@@ -173,7 +173,7 @@
     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)
 {
     VBDecContext * const c = avctx->priv_data;
     uint8_t *outptr, *srcptr;