Originally committed as revision 11745 to svn://svn.ffmpeg.org/ffmpeg/trunk
Michael Niedermayer authored on 2008/02/01 23:16:08... | ... |
@@ -42,12 +42,13 @@ static int sunrast_init(AVCodecContext *avctx) { |
42 | 42 |
} |
43 | 43 |
|
44 | 44 |
static int sunrast_decode_frame(AVCodecContext *avctx, void *data, |
45 |
- int *data_size, uint8_t *buf, int buf_size) { |
|
45 |
+ int *data_size, const uint8_t *buf, int buf_size) { |
|
46 | 46 |
SUNRASTContext * const s = avctx->priv_data; |
47 | 47 |
AVFrame *picture = data; |
48 | 48 |
AVFrame * const p = &s->picture; |
49 | 49 |
unsigned int w, h, depth, type, maptype, maplength, stride, x, y, len, alen; |
50 |
- uint8_t *ptr, *bufstart = buf; |
|
50 |
+ uint8_t *ptr; |
|
51 |
+ const uint8_t *bufstart = buf; |
|
51 | 52 |
|
52 | 53 |
if (AV_RB32(buf) != 0x59a66a95) { |
53 | 54 |
av_log(avctx, AV_LOG_ERROR, "this is not sunras encoded data\n"); |