36 0x4a, 0x46, 0x49, 0x46, 0x00,
48 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
49 0x0a, 0x0b, 0x01, 0x00, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01,
50 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
55 memcpy(buf, src, size);
76 uint8_t **poutbuf,
int *poutbuf_size,
80 int input_skip, output_size;
87 if (memcmp(
"AVI1", buf + 6, 4)) {
91 input_skip = (buf[4] << 8) + buf[5] + 4;
92 if (buf_size < input_skip) {
96 output_size = buf_size - input_skip +
103 out =
append(out, buf + input_skip, buf_size - input_skip);
105 *poutbuf_size = output_size;
110 .
name =
"mjpeg2jpeg",