mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Remove extra byte in JPEG image size.
This commit is contained in:
parent
7fff1dc12b
commit
e9147d4594
@ -512,6 +512,6 @@ void jpeg_compress(image_t *src, image_t *dst, int quality)
|
|||||||
jpeg_put_char(&jpeg_buf, 0xD9);
|
jpeg_put_char(&jpeg_buf, 0xD9);
|
||||||
|
|
||||||
|
|
||||||
dst->bpp = jpeg_buf.idx+1;
|
dst->bpp = jpeg_buf.idx;
|
||||||
dst->data = jpeg_buf.buf;
|
dst->data = jpeg_buf.buf;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user