Page 1 of 1

[Resolved] Error count question

Posted: Sat Sep 10, 2016 7:16 am
by fuzzball
case 1:
Number of sector(s) where user data doesn't match the expected ECC/EDC: 1
Number of sector(s) where while user data does match the expected ECC/EDC there is no EDC: 1337
Error count is 1? or 1337? or 1+1337=1338?

case 2:
Number of sector(s) where while user data does match the expected ECC/EDC there is no EDC: 46113
Error count is 0? or 46113?

Re: [Resolved] Error count question

Posted: Sat Sep 10, 2016 7:33 am
by reentrant
From code:

Code: Select all

                    //
                    // Might be Mode 2, Form 2
                    //
                    if (
                        edc_compute(0, sector + 0x10, 0x91C) == get32lsb(sector + 0x10 + 0x91C)
                        ) {
                        return 3; // Mode 2, Form 2
                    }
                    else {
                        return 4; // Mode 2, No EDC (for PlayStation)
                    }
What you're asking is if return 4 is in error path. Yes. EDC doesn't match for the sector. What does CDmage report?
So I think it's 1338 and 46113.

Re: [Resolved] Error count question

Posted: Sat Sep 10, 2016 8:25 am
by fuzzball
reentrant wrote:What does CDmage report?
1 and 0.

Re: [Resolved] Error count question

Posted: Sat Sep 10, 2016 8:44 am
by reentrant
What's the value of EDC for such sectors: 0 or different than 0? Maybe value of 0 is a special case...
Are the sectors readable in simple imaging tools like IsoBuster?

Re: [Resolved] Error count question

Posted: Sat Sep 10, 2016 8:55 am
by fuzzball
reentrant wrote:Are the sectors readable in simple imaging tools like IsoBuster?
Yes. Both are PlayStation disc.

case 1:
https://redump.info/disc/29762/

case 2:
https://redump.info/disc/15196/
https://redump.info/disc/15257/

Re: [Resolved] Error count question

Posted: Sat Sep 10, 2016 8:59 am
by F1ReB4LL
"Number of sector(s) where while user data does match the expected ECC/EDC there is no EDC" -- most likely these numbers just show the number of Mode 2 Form 1 sectors in the NoEDC image, these are not errors.

I think it's better to report the number of errors from CDMage, because edcchhk treats many cases as "warnings", that's confusing.

Re: [Resolved] Error count question

Posted: Sat Sep 10, 2016 9:44 am
by Jackal
F1ReB4LL wrote:I think it's better to report the number of errors from CDMage, because edcchhk treats many cases as "warnings", that's confusing.
I agree.. but I think the 1337 and 46113 are the sectors with modified subheaders. They do show as errors in CDMage?

Re: [Resolved] Error count question

Posted: Sat Sep 10, 2016 9:58 am
by F1ReB4LL
Jackal wrote:They do show as errors in CDMage?
He says "no" (3rd post).

"while user data does match the expected ECC/EDC there is no EDC" -- IMO, it says "there's no ECC/EDC error, but EDC itself is null" and nothing about subheaders at all, that's normal for NoEDC images.

Re: [Resolved] Error count question

Posted: Sat Sep 10, 2016 2:01 pm
by iR0b0t
edcchhk returns a correct amount of ERRORS, just look for that line and not for total.

CDmage (at least the last version i was ever using) returns any "errors" you can ever have: moddified subheaders, ECC/EDC error etc. Where moddified subheaders and ECC/EDC mismatch is not an actual ERROR and should not be included into final errors count.

case1 = 1
case2 = 0

Re: [Resolved] Error count question

Posted: Sun Sep 11, 2016 11:18 pm
by F1ReB4LL
iR0b0t wrote:Where moddified subheaders and ECC/EDC mismatch is not an actual ERROR and should not be included into final errors count.
Disagree. IMO, we should include any imperfections into the total errors count. Otherwise, there should be a "Warnings" count field as well.
I'm not talking about NoEDC sectors in NoEDC images, of course, I don't understand the reason to warn there.