Add a TODO comment
WebP can't save all JPEGs, because WEBP_MAX_DIMENSION is only 16383.
This commit is contained in:
parent
5d019e20b5
commit
3ae8be8348
1
fiv-io.c
1
fiv-io.c
|
@ -3098,6 +3098,7 @@ fiv_io_encode_webp(
|
||||||
for (int i = h * picture.argb_stride; i-- > 0; argb++)
|
for (int i = h * picture.argb_stride; i-- > 0; argb++)
|
||||||
*argb |= 0xFF000000;
|
*argb |= 0xFF000000;
|
||||||
|
|
||||||
|
// TODO(p): Prevent or propagate VP8_ENC_ERROR_BAD_DIMENSION.
|
||||||
picture.writer = WebPMemoryWrite;
|
picture.writer = WebPMemoryWrite;
|
||||||
picture.custom_ptr = &writer;
|
picture.custom_ptr = &writer;
|
||||||
if (!WebPEncode(config, &picture))
|
if (!WebPEncode(config, &picture))
|
||||||
|
|
Loading…
Reference in New Issue