summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-13 13:39:52 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-13 13:39:52 +0200
commitc7013a2e1595447c9daa7b13f7a105721c409e2e (patch)
tree078a7d179cb83598b45c8fb8c2f9731e4910749b
parent4ef0091b33e12450e5de4e420dfabfa8b110fc35 (diff)
Give a better error when guess_crop can't cope with a pixel format.
-rw-r--r--src/lib/guess_crop.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/guess_crop.cc b/src/lib/guess_crop.cc
index 5deb0e480..7ee7a7286 100644
--- a/src/lib/guess_crop.cc
+++ b/src/lib/guess_crop.cc
@@ -62,7 +62,7 @@ guess_crop (shared_ptr<const Image> image, double threshold)
break;
}
default:
- DCPOMATIC_ASSERT (false);
+ throw PixelFormatError("guess_crop()", image->pixel_format());
}
return brightest > threshold;