This commit is contained in:
Matteo Paonessa 2019-09-28 20:00:28 +02:00
parent a955827b44
commit 0a4bf12dea
4 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,7 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
# The version number.
set(VERSION_MAJOR 0)
set(VERSION_MINOR 4)
set(VERSION_PATCH 2)
set(VERSION_PATCH 3)
configure_file(
"caesium/config.h.in"

View File

@ -101,7 +101,7 @@ This will compile both the shared and static caesium library, the required heade
##### Requirements
You need basic developer utilities. On Ubuntu you can install them with
```bash
sudo apt-get install libtool autoconf git nasm pkg-config cmake
sudo apt-get install libtool autoconf git nasm pkg-config cmake libpng-dev
```
Then run `install.sh` to get the latest mozjpeg and zopfli.
##### Compile

View File

@ -227,6 +227,7 @@ unsigned char *cs_jpeg_decompress(const char *fileName, cs_jpeg_pars *options)
display_error(ERROR, 208);
}
fclose(fp);
tjDestroy(tjDecompressHandle);
tjFree(sourceJpegBuffer);

View File

@ -18,5 +18,5 @@ int main(int argc, char *argv[])
cs_image_pars options = initialize_parameters();
bool result = cs_compress(argv[1], argv[2], &options);
exit(result);
exit(!result);
}