40 0x4a, 0x46, 0x49, 0x46, 0x00,
52 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
53 0x0a, 0x0b, 0x01, 0x00, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01,
54 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
59 memcpy(buf, src, size);
80 uint8_t **poutbuf,
int *poutbuf_size,
84 int input_skip, output_size;
91 if (memcmp(
"AVI1", buf + 6, 4)) {
95 input_skip = (buf[4] << 8) + buf[5] + 4;
96 if (buf_size < input_skip) {
100 output_size = buf_size - input_skip +
107 out =
append(out, buf + input_skip, buf_size - input_skip);
109 *poutbuf_size = output_size;
114 .
name =
"mjpeg2jpeg",