33                         void *
data, 
int *got_frame,
 
   38     int buf_size           = avpkt->
size;
 
   53     if (buf_end - buf < 0x68 + 4)
 
   59     if (colors < 0 || colors > 256) {
 
   63     if (buf_end - buf < (colors + 1) * 8)
 
   66     pal = (uint32_t*)p->
data[1];
 
   67     for (i = 0; i <= colors; i++) {
 
   83         pal[idx] = 0xFF
U << 24 | r << 16 | g << 8 | 
b;
 
   87     if (buf_end - buf < 18)
 
   90     for (i = 0; i < avctx->
height; i++) {
 
   91         int size, left, code, pix;
 
  100         if (buf_end - buf < size)
 
  109                 if ((out + (257 - code)) > (outdata +  p->
linesize[0]))
 
  111                 memset(out, pix, 257 - code);
 
  116                 if ((out + code) > (outdata +  p->
linesize[0]))
 
  118                 if (buf_end - buf < code + 1)
 
  120                 memcpy(out, buf, code + 1);