consts
I have underestimated this a little, and these are just some ... Originally committed as revision 11708 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -44,7 +44,7 @@ typedef struct VBDecContext {
|
||||
|
||||
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 @@ static inline int check_line(uint8_t *buf, uint8_t *start, uint8_t *end)
|
||||
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 @@ static int vb_decode_framedata(VBDecContext *c, uint8_t *buf, int offset)
|
||||
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;
|
||||
|
Reference in New Issue
Block a user