summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2021-08-16 06:54:00 +0700
committerPierre Joye <pierre.php@gmail.com>2021-08-16 06:54:00 +0700
commitc483535fc991e9f5b1c96e269b0d7bb8f0b6952f (patch)
treebf76c683b37fb3e6bb459ba2c829b77a97b7290e /src
parentcd17df9087ac92f39cdb4410e14f699f4622e122 (diff)
downloadlibgd-c483535fc991e9f5b1c96e269b0d7bb8f0b6952f.tar.gz
revert that part, should be test side only
Diffstat (limited to 'src')
-rw-r--r--src/gd_webp.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gd_webp.c b/src/gd_webp.c
index 1622310..f0ac70b 100644
--- a/src/gd_webp.c
+++ b/src/gd_webp.c
@@ -105,7 +105,7 @@ BGD_DECLARE(gdImagePtr) gdImageCreateFromWebpCtx (gdIOCtx * infile)
uint8_t *filedata = NULL;
uint8_t *argb = NULL;
unsigned char *read, *temp;
- size_t size = 0, n;
+ ssize_t size = 0, n;
gdImagePtr im;
int x, y;
uint8_t *p;
@@ -357,15 +357,6 @@ BGD_DECLARE(void *) gdImageWebpPtrEx (gdImagePtr im, int *size, int quality)
{
void *rv;
- /*
- WebP Header is 3x32bits
- RIFF
- filesize
- WEBP
- */
- if (size < 96) {
- return NULL;
- }
gdIOCtx *out = gdNewDynamicCtx(2048, NULL);
if (out == NULL) {
return NULL;