Fixed issues with generation of SOP marker.

This commit is contained in:
Parvatha Elangovan
2007-09-19 14:56:19 +00:00
parent a6ba04cdf4
commit 7e40a9475a
5 changed files with 52 additions and 33 deletions

View File

@@ -147,8 +147,8 @@ static int t2_encode_packet(opj_tcd_tile_t * tile, opj_tcp_t * tcp, opj_pi_itera
c[1] = 145;
c[2] = 0;
c[3] = 4;
c[4] = (cstr_info->packno % 65536) / 256;
c[5] = (cstr_info->packno % 65536) % 256;
c[4] = (tile->packno % 65536) / 256;
c[5] = (tile->packno % 65536) % 256;
c += 6;
}
/* </SOP> */
@@ -656,6 +656,7 @@ int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlaye
cstr_info->packno++;
}
/* << INDEX */
tile->packno++;
}
}
}