kinow commented on a change in pull request #47: IMAGING-134: Fix JPEG handling
for files encoded with RST markers
URL: https://github.com/apache/commons-imaging/pull/47#discussion_r291793216
##########
File path:
src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegDecoder.java
##########
@@ -122,8 +134,21 @@ public void visitSOS(final int marker, final byte[]
markerBytes, final byte[] im
}
final DataBuffer dataBuffer = raster.getDataBuffer();
+ final JpegInputStream[] bitInputStreams =
splitByRstMarkers(scanPayload);
+ int bitInputStreamCount = 0;
+ JpegInputStream bitInputStream = bitInputStreams[0];
+
for (int y1 = 0; y1 < vSize * yMCUs; y1 += vSize) {
for (int x1 = 0; x1 < hSize * xMCUs; x1 += hSize) {
+ // provide a the next interval if an interval is read
until it's end
+ // as long there are unread intervals available
Review comment:
Maybe
```
provide the next interval if an interval is read until its end
as long as there are unread intervals available
```
?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services