Imported Upstream version 0.72.3

This commit is contained in:
TANIGUCHI Takaki
2012-03-06 11:08:15 +09:00
parent 205701b3de
commit 30255c97b3
713 changed files with 13953 additions and 28840 deletions

View File

@@ -1,5 +1,5 @@
/* dvdisaster: Additional error correction for optical media.
* Copyright (C) 2004-2010 Carsten Gnoerlich.
* Copyright (C) 2004-2011 Carsten Gnoerlich.
* Project home page: http://www.dvdisaster.com
* Email: carsten@dvdisaster.com -or- cgnoerlich@fsfe.org
*
@@ -551,14 +551,9 @@ void RS02Verify(Method *self)
int last_percent = 0;
unsigned char buf[2048];
gint64 first_missing, last_missing;
gint64 total_missing = 0;
gint64 data_missing = 0;
gint64 crc_missing = 0;
gint64 ecc_missing = 0;
gint64 new_missing = 0;
gint64 new_crc_errors = 0;
gint64 data_crc_errors = 0;
gint64 hdr_missing, hdr_crc_errors;
gint64 total_missing,data_missing,crc_missing,ecc_missing,hdr_missing;
gint64 new_missing = 0, new_crc_errors = 0;
gint64 data_crc_errors,hdr_crc_errors;
gint64 hdr_ok,hdr_pos,hdr_correctable;
gint64 ecc_sector,expected_sectors;
int ecc_md5_failure = FALSE;
@@ -679,13 +674,6 @@ void RS02Verify(Method *self)
}
}
/* take shortcut in quick mode */
if(Closure->quickVerify)
{ PrintLog(_("* quick mode : image NOT scanned\n"));
goto continue_with_ecc;
}
/*** Read the CRC portion */
read_crc(cc, lay);
@@ -701,6 +689,8 @@ void RS02Verify(Method *self)
MD5Init(&meta_md5);
first_missing = last_missing = -1;
total_missing = data_missing = crc_missing = ecc_missing = 0;
data_crc_errors = 0;
crc_idx = 0;
ecc_sector = 0;
@@ -900,7 +890,7 @@ void RS02Verify(Method *self)
}
/*** Print some information on the ecc portion */
continue_with_ecc:
PrintLog(_("\nError correction data: "));
major = eh->creatorVersion/10000;
@@ -1015,9 +1005,6 @@ continue_with_ecc:
}
}
if(Closure->quickVerify) /* take shortcut again */
goto terminate;
/* image md5sum as stored in the ecc header */
AsciiDigest(hdr_digest, eh->mediumSum);