src/main/java/com/netflix/imflibrary/J2KHeaderParameters.java [226:240]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (codString != null && codString.length() >= 20 && (codString.length() % 2 == 0)) {
            p.cod = new COD();
            p.cod.scod = (short) Integer.parseInt(codString.substring(0, 2), 16);
            p.cod.progressionOrder = (short) Integer.parseInt(codString.substring(2, 4), 16);
            p.cod.numLayers = Integer.parseInt(codString.substring(4, 8), 16);
            p.cod.multiComponentTransform = (short) Integer.parseInt(codString.substring(8, 10), 16);
            p.cod.numDecompLevels = (short) Integer.parseInt(codString.substring(10, 12), 16);
            p.cod.xcb = (short) (Integer.parseInt(codString.substring(12, 14), 16) + 2);
            p.cod.ycb = (short) (Integer.parseInt(codString.substring(14, 16), 16) + 2);
            p.cod.cbStyle = (short) Integer.parseInt(codString.substring(16, 18), 16);
            p.cod.transformation = (short) Integer.parseInt(codString.substring(18, 20), 16);

            p.cod.precinctSizes = new short[(codString.length() - 20) / 2];
            for (int i = 0; i < p.cod.precinctSizes.length; i++) {
                p.cod.precinctSizes[i] = (short) Integer.parseInt(codString.substring(20 + 2 * i, 22 + 2 * i), 16);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/com/netflix/imflibrary/J2KHeaderParameters.java [305:319]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (codString != null && codString.length() >= 20 && (codString.length() % 2 == 0)) {
            p.cod = new COD();
            p.cod.scod = (short) Integer.parseInt(codString.substring(0, 2), 16);
            p.cod.progressionOrder = (short) Integer.parseInt(codString.substring(2, 4), 16);
            p.cod.numLayers = Integer.parseInt(codString.substring(4, 8), 16);
            p.cod.multiComponentTransform = (short) Integer.parseInt(codString.substring(8, 10), 16);
            p.cod.numDecompLevels = (short) Integer.parseInt(codString.substring(10, 12), 16);
            p.cod.xcb = (short) (Integer.parseInt(codString.substring(12, 14), 16) + 2);
            p.cod.ycb = (short) (Integer.parseInt(codString.substring(14, 16), 16) + 2);
            p.cod.cbStyle = (short) Integer.parseInt(codString.substring(16, 18), 16);
            p.cod.transformation = (short) Integer.parseInt(codString.substring(18, 20), 16);

            p.cod.precinctSizes = new short[(codString.length() - 20) / 2];
            for (int i = 0; i < p.cod.precinctSizes.length; i++) {
                p.cod.precinctSizes[i] = (short) Integer.parseInt(codString.substring(20 + 2 * i, 22 + 2 * i), 16);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



