38 void *
data,
int *got_frame,
43 int buf_size = avpkt->
size;
65 if (buf_end - buf < 0x68 + 4)
71 if(colors < 0 || colors > 256) {
75 if (buf_end - buf < (colors + 1) * 8)
78 pal = (uint32_t*)p->
data[1];
79 for (i = 0; i <= colors; i++) {
95 pal[idx] = 0xFF
U << 24 | r << 16 | g << 8 |
b;
99 if (buf_end - buf < 18)
102 for (i = 0; i < avctx->
height; i++) {
103 int size, left, code, pix;
112 if (buf_end - buf < size)
121 if ((out + (257 - code)) > (outdata + a->
pic.
linesize[0]))
123 memset(out, pix, 257 - code);
130 if (buf_end - buf < code + 1)
132 memcpy(out, buf, code + 1);