Mercurial > libavcodec.hg
comparison qdrw.c @ 6275:2ce4b47513a0 libavcodec
const
author | michael |
---|---|
date | Fri, 01 Feb 2008 15:40:03 +0000 |
parents | 2b72f9bc4f06 |
children | c32be43b52b2 |
comparison
equal
deleted
inserted
replaced
6274:458c2f742eef | 6275:2ce4b47513a0 |
---|---|
32 AVFrame pic; | 32 AVFrame pic; |
33 } QdrawContext; | 33 } QdrawContext; |
34 | 34 |
35 static int decode_frame(AVCodecContext *avctx, | 35 static int decode_frame(AVCodecContext *avctx, |
36 void *data, int *data_size, | 36 void *data, int *data_size, |
37 uint8_t *buf, int buf_size) | 37 const uint8_t *buf, int buf_size) |
38 { | 38 { |
39 QdrawContext * const a = avctx->priv_data; | 39 QdrawContext * const a = avctx->priv_data; |
40 AVFrame * const p= (AVFrame*)&a->pic; | 40 AVFrame * const p= (AVFrame*)&a->pic; |
41 uint8_t* outdata; | 41 uint8_t* outdata; |
42 int colors; | 42 int colors; |
88 p->palette_has_changed = 1; | 88 p->palette_has_changed = 1; |
89 | 89 |
90 buf += 18; /* skip unneeded data */ | 90 buf += 18; /* skip unneeded data */ |
91 for (i = 0; i < avctx->height; i++) { | 91 for (i = 0; i < avctx->height; i++) { |
92 int size, left, code, pix; | 92 int size, left, code, pix; |
93 uint8_t *next; | 93 const uint8_t *next; |
94 uint8_t *out; | 94 uint8_t *out; |
95 int tsize = 0; | 95 int tsize = 0; |
96 | 96 |
97 /* decode line */ | 97 /* decode line */ |
98 out = outdata; | 98 out = outdata; |