Mercurial > libavcodec.hg
comparison qtrle.c @ 6315:9ac5c0cfeb56 libavcodec
mark qtrle input data as const.
author | reimar |
---|---|
date | Sat, 02 Feb 2008 22:09:07 +0000 |
parents | 2b72f9bc4f06 |
children | 814c8bd77d91 |
comparison
equal
deleted
inserted
replaced
6314:de5d97b6c25b | 6315:9ac5c0cfeb56 |
---|---|
43 | 43 |
44 AVCodecContext *avctx; | 44 AVCodecContext *avctx; |
45 DSPContext dsp; | 45 DSPContext dsp; |
46 AVFrame frame; | 46 AVFrame frame; |
47 | 47 |
48 unsigned char *buf; | 48 const unsigned char *buf; |
49 int size; | 49 int size; |
50 | 50 |
51 } QtrleContext; | 51 } QtrleContext; |
52 | 52 |
53 #define CHECK_STREAM_PTR(n) \ | 53 #define CHECK_STREAM_PTR(n) \ |
528 return 0; | 528 return 0; |
529 } | 529 } |
530 | 530 |
531 static int qtrle_decode_frame(AVCodecContext *avctx, | 531 static int qtrle_decode_frame(AVCodecContext *avctx, |
532 void *data, int *data_size, | 532 void *data, int *data_size, |
533 uint8_t *buf, int buf_size) | 533 const uint8_t *buf, int buf_size) |
534 { | 534 { |
535 QtrleContext *s = avctx->priv_data; | 535 QtrleContext *s = avctx->priv_data; |
536 | 536 |
537 s->buf = buf; | 537 s->buf = buf; |
538 s->size = buf_size; | 538 s->size = buf_size; |