Skip to content

Commit e0fcd6d

Browse files
committed
added gray decoding
1 parent 1389d27 commit e0fcd6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/jxlc/JxlAnimatedDecoder.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ class JxlAnimatedDecoder {
7878
}
7979

8080
if (JXL_DEC_SUCCESS != JxlDecoderSetUnpremultiplyAlpha(dec.get(), JXL_TRUE)) {
81-
return false;
81+
std::string str = "Cannot initialize decoder";
82+
throw AnimatedDecoderError(str);
8283
}
8384

8485
if (JXL_DEC_SUCCESS !=

0 commit comments

Comments
 (0)