comparison msrle.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 f99e40a7155b
children 48759bfbd073
comparison
equal deleted inserted replaced
6217:f838213ca91b 6218:dfdff1ca78a7
41 41
42 typedef struct MsrleContext { 42 typedef struct MsrleContext {
43 AVCodecContext *avctx; 43 AVCodecContext *avctx;
44 AVFrame frame; 44 AVFrame frame;
45 45
46 unsigned char *buf; 46 const unsigned char *buf;
47 int size; 47 int size;
48 48
49 } MsrleContext; 49 } MsrleContext;
50 50
51 #define FETCH_NEXT_STREAM_BYTE() \ 51 #define FETCH_NEXT_STREAM_BYTE() \
248 return 0; 248 return 0;
249 } 249 }
250 250
251 static int msrle_decode_frame(AVCodecContext *avctx, 251 static int msrle_decode_frame(AVCodecContext *avctx,
252 void *data, int *data_size, 252 void *data, int *data_size,
253 uint8_t *buf, int buf_size) 253 const uint8_t *buf, int buf_size)
254 { 254 {
255 MsrleContext *s = avctx->priv_data; 255 MsrleContext *s = avctx->priv_data;
256 256
257 s->buf = buf; 257 s->buf = buf;
258 s->size = buf_size; 258 s->size = buf_size;