Suppress annoying TIFF errors

Fixes #252
This commit is contained in:
Harry Jeffery 2021-07-09 00:00:44 +01:00
parent 27df0fb8fe
commit 8d91875207

View file

@ -110,6 +110,8 @@ static enum backend_result open_path(const char *path, struct imv_source **src)
{
struct private private;
TIFFSetErrorHandler(NULL);
private.tiff = TIFFOpen(path, "r");
if (!private.tiff) {
/* Header is read, so no BAD_PATH check here */