We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ee4910 commit 63f7170Copy full SHA for 63f7170
1 file changed
src/librawspeed/decompressors/LJpegDecoder.cpp
@@ -132,6 +132,9 @@ Buffer::size_type LJpegDecoder::decodeScan() {
132
if (maxRes.area() != N_COMP * jpegFrame.dim.area())
133
ThrowRDE("LJpeg frame area does not match maximal tile area");
134
135
+ if (maxRes.x % jpegFrame.dim.x != 0 || maxRes.y % jpegFrame.dim.y != 0)
136
+ ThrowRDE("Maximal output tile size is not a multiple of LJpeg frame size");
137
+
138
int numRowsPerRestartInterval;
139
if (numMCUsPerRestartInterval == 0) {
140
// Restart interval not enabled, so all of the rows
0 commit comments