Decode an unsigned 16 bit quantity */
| 447 | |
| 448 | /* Decode an unsigned 16 bit quantity */ |
| 449 | static unsigned short |
| 450 | read_u16(const unsigned char buf[2]) |
| 451 | { |
| 452 | return ((unsigned short)buf[0] << 0) |
| 453 | | ((unsigned short)buf[1] << 8); |
| 454 | } |
| 455 | |
| 456 | static boolean |
| 457 | read_data_block(struct Bitstream *gif, struct DataBlock *block) |