Ensure VIPS_CODING_ERROR is handled for vips images (#2420)
This commit is contained in:
parent
451cfcd282
commit
4aaed60573
@ -400,6 +400,11 @@ vips__read_header_bytes( VipsImage *im, unsigned char *from )
|
||||
* are sane.
|
||||
*/
|
||||
switch( im->Coding ) {
|
||||
case VIPS_CODING_ERROR:
|
||||
vips_error( "VipsImage",
|
||||
"%s", _( "unknown coding" ) );
|
||||
return( -1 );
|
||||
|
||||
case VIPS_CODING_NONE:
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user