comparison rpza.c @ 6248:8705a4d4904f libavcodec

const
author michael
date Fri, 01 Feb 2008 14:06:54 +0000
parents 2b72f9bc4f06
children 814c8bd77d91
comparison
equal deleted inserted replaced
6247:aa954496a445 6248:8705a4d4904f
46 46
47 AVCodecContext *avctx; 47 AVCodecContext *avctx;
48 DSPContext dsp; 48 DSPContext dsp;
49 AVFrame frame; 49 AVFrame frame;
50 50
51 unsigned char *buf; 51 const unsigned char *buf;
52 int size; 52 int size;
53 53
54 } RpzaContext; 54 } RpzaContext;
55 55
56 #define ADVANCE_BLOCK() \ 56 #define ADVANCE_BLOCK() \
241 return 0; 241 return 0;
242 } 242 }
243 243
244 static int rpza_decode_frame(AVCodecContext *avctx, 244 static int rpza_decode_frame(AVCodecContext *avctx,
245 void *data, int *data_size, 245 void *data, int *data_size,
246 uint8_t *buf, int buf_size) 246 const uint8_t *buf, int buf_size)
247 { 247 {
248 RpzaContext *s = avctx->priv_data; 248 RpzaContext *s = avctx->priv_data;
249 249
250 s->buf = buf; 250 s->buf = buf;
251 s->size = buf_size; 251 s->size = buf_size;