[Resolved] Error count question

Post Reply
User avatar
fuzzball
Posts: 1827
Joined: Mon Jun 08, 2026 1:26 am

[Resolved] Error count question

Post 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?
Last edited by fuzzball on Sat Oct 10, 2020 9:35 pm, edited 1 time in total.
reentrant
Posts: 719
Joined: Mon Jun 08, 2026 1:28 am

Re: [Resolved] Error count question

Post 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.
User avatar
fuzzball
Posts: 1827
Joined: Mon Jun 08, 2026 1:26 am

Re: [Resolved] Error count question

Post by fuzzball »

reentrant wrote:What does CDmage report?
1 and 0.
reentrant
Posts: 719
Joined: Mon Jun 08, 2026 1:28 am

Re: [Resolved] Error count question

Post 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?
User avatar
fuzzball
Posts: 1827
Joined: Mon Jun 08, 2026 1:26 am

Re: [Resolved] Error count question

Post 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/
F1ReB4LL
Posts: 3395
Joined: Mon Jun 08, 2026 1:26 am

Re: [Resolved] Error count question

Post 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.
Jackal
Posts: 2598
Joined: Mon Jun 08, 2026 1:26 am

Re: [Resolved] Error count question

Post 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?
F1ReB4LL
Posts: 3395
Joined: Mon Jun 08, 2026 1:26 am

Re: [Resolved] Error count question

Post 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.
User avatar
iR0b0t
Posts: 3397
Joined: Mon Jun 08, 2026 1:26 am

Re: [Resolved] Error count question

Post 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
PX-760A (+30), PX-W4824TA (+98), GSA-H42L (+667), GDR-8164B (+102), SH-D162D (+6), SOHD-167T (+12)
F1ReB4LL
Posts: 3395
Joined: Mon Jun 08, 2026 1:26 am

Re: [Resolved] Error count question

Post 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.
Post Reply