diff --git a/libvips/iofuncs/vips.c b/libvips/iofuncs/vips.c index 8d25c2bb..d910d731 100644 --- a/libvips/iofuncs/vips.c +++ b/libvips/iofuncs/vips.c @@ -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;