small formatting
This commit is contained in:
parent
047bef50d9
commit
7d3aaf540c
@ -204,8 +204,6 @@ vips_foreign_load_png_set_text( VipsImage *out,
|
|||||||
static int
|
static int
|
||||||
vips_foreign_load_png_set_header( VipsForeignLoadPng *png, VipsImage *image )
|
vips_foreign_load_png_set_header( VipsForeignLoadPng *png, VipsImage *image )
|
||||||
{
|
{
|
||||||
VipsObjectClass *class = VIPS_OBJECT_GET_CLASS( png );
|
|
||||||
|
|
||||||
double xres, yres;
|
double xres, yres;
|
||||||
struct spng_iccp iccp;
|
struct spng_iccp iccp;
|
||||||
struct spng_exif exif;
|
struct spng_exif exif;
|
||||||
@ -256,10 +254,10 @@ vips_foreign_load_png_set_header( VipsForeignLoadPng *png, VipsImage *image )
|
|||||||
/* Very large numbers of text chunks are used in DoS
|
/* Very large numbers of text chunks are used in DoS
|
||||||
* attacks.
|
* attacks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if( !png->unlimited && n_text > MAX_PNG_TEXT_CHUNKS ) {
|
if( !png->unlimited && n_text > MAX_PNG_TEXT_CHUNKS ) {
|
||||||
g_warning(_( "%d text chunks, only %d text chunks will be loaded" ),
|
g_warning( _( "%d text chunks, "
|
||||||
n_text, MAX_PNG_TEXT_CHUNKS );
|
"only %d text chunks will be loaded" ),
|
||||||
|
n_text, MAX_PNG_TEXT_CHUNKS );
|
||||||
n_text = MAX_PNG_TEXT_CHUNKS;
|
n_text = MAX_PNG_TEXT_CHUNKS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -566,8 +566,6 @@ vips_foreign_save_spng_build( VipsObject *object )
|
|||||||
VipsForeignSaveSpng *spng = (VipsForeignSaveSpng *) object;
|
VipsForeignSaveSpng *spng = (VipsForeignSaveSpng *) object;
|
||||||
|
|
||||||
VipsImage *in;
|
VipsImage *in;
|
||||||
VipsInterpretation interpretation;
|
|
||||||
VipsImage *x;
|
|
||||||
|
|
||||||
if( VIPS_OBJECT_CLASS( vips_foreign_save_spng_parent_class )->
|
if( VIPS_OBJECT_CLASS( vips_foreign_save_spng_parent_class )->
|
||||||
build( object ) )
|
build( object ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user