"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libburn/cdtext.c" between
xorriso-1.5.2.tar.gz and xorriso-1.5.4.tar.gz

About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.

cdtext.c  (xorriso-1.5.2):cdtext.c  (xorriso-1.5.4)
skipping to change at line 75 skipping to change at line 75
crs->packs[idx++] = track_no; crs->packs[idx++] = track_no;
crs->packs[idx++] = crs->hiseq[block]; crs->packs[idx++] = crs->hiseq[block];
crs->packs[idx++] = ((flag & 1) << 7) | (block << 4) | char_pos; crs->packs[idx++] = ((flag & 1) << 7) | (block << 4) | char_pos;
crs->hiseq[block]++; crs->hiseq[block]++;
crs->td_used = 0; crs->td_used = 0;
crs->pack_count[pack_type - Libburn_pack_type_basE]++; crs->pack_count[pack_type - Libburn_pack_type_basE]++;
return 1; return 1;
} }
/* Plain implementation of polynomial division on a Galois field, where /* Plain implementation of polynomial division on a Galois field, where
addition and subtraction both are binary exor. Euclidian algorithm. addition and subtraction both are binary exor. Euclidean algorithm.
Divisor is x^16 + x^12 + x^5 + 1 = 0x11021. Divisor is x^16 + x^12 + x^5 + 1 = 0x11021.
*/ */
static int crc_11021(unsigned char *data, int count, int flag) static int crc_11021(unsigned char *data, int count, int flag)
{ {
int acc = 0, i; int acc = 0, i;
for (i = 0; i < count * 8 + 16; i++) { for (i = 0; i < count * 8 + 16; i++) {
acc = (acc << 1); acc = (acc << 1);
if (i < count * 8) if (i < count * 8)
acc |= ((data[i / 8] >> (7 - (i % 8))) & 1); acc |= ((data[i / 8] >> (7 - (i % 8))) & 1);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)