error in header read
This commit is contained in:
parent
1ef0eb6dc2
commit
2ab02af6e0
@ -536,7 +536,7 @@ vips__matrix_header( char *whitemap, FILE *fp,
|
|||||||
return( -1 );
|
return( -1 );
|
||||||
}
|
}
|
||||||
*width = header[0];
|
*width = header[0];
|
||||||
*height = header[0];
|
*height = header[1];
|
||||||
if( *width <= 0 ||
|
if( *width <= 0 ||
|
||||||
*width > 100000 ||
|
*width > 100000 ||
|
||||||
*height <= 0 ||
|
*height <= 0 ||
|
||||||
@ -652,6 +652,8 @@ vips__matrix_body( char *whitemap, VipsImage *out, FILE *fp )
|
|||||||
}
|
}
|
||||||
*VIPS_MATRIX( out, x, y ) = d;
|
*VIPS_MATRIX( out, x, y ) = d;
|
||||||
|
|
||||||
|
printf( "%d, %d = %g\n", x, y, d );
|
||||||
|
|
||||||
/* Deliberately don't check for line too long.
|
/* Deliberately don't check for line too long.
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user