TJExample: Fix array index OOB w/ 4:1:1 JPEG input

This commit is contained in:
DRC
2017-11-17 18:45:08 -06:00
parent 9d9d8fe658
commit 19b393b624
2 changed files with 5 additions and 1 deletions

View File

@@ -28,6 +28,10 @@ ignoring typos.
6. Fixed an access violation in tjbench.exe (Windows) that occurred when the 6. Fixed an access violation in tjbench.exe (Windows) that occurred when the
program was used to decompress an existing JPEG image. program was used to decompress an existing JPEG image.
7. Fixed an ArrayIndexOutOfBoundsException in the TJExample Java program that
occurred when attempting to decompress a JPEG image that had been compressed
with 4:1:1 chrominance subsampling.
1.5.2 1.5.2
===== =====

View File

@@ -95,7 +95,7 @@ public class TJExample implements TJCustomFilter {
} }
private static final String[] sampName = { private static final String[] sampName = {
"4:4:4", "4:2:2", "4:2:0", "Grayscale", "4:4:0" "4:4:4", "4:2:2", "4:2:0", "Grayscale", "4:4:0", "4:1:1"
}; };
public static void main(String[] argv) { public static void main(String[] argv) {