From c7013a2e1595447c9daa7b13f7a105721c409e2e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 13 May 2022 13:39:52 +0200 Subject: [PATCH] Give a better error when guess_crop can't cope with a pixel format. --- src/lib/guess_crop.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 image, double threshold) break; } default: - DCPOMATIC_ASSERT (false); + throw PixelFormatError("guess_crop()", image->pixel_format()); } return brightest > threshold; -- 2.30.2