You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user correctly specifies --no-bdr-defect-management, in exhaustive scan mode (bypassing the "Easy shot: Locate the ecc header"), dvdisaster will determine the disc as the next size up (dual-layer instead of single-layer, etc).
This is causing the exhaustive scan to fail unpredictably, in cases when it's needed:
As you can see, an SL image that's been augmented with no defect management will have an image_sectors GREATER THAN BD_SL_SIZE, and will thus match the image_sectors < BD_DL_SIZE instead.
dvdisaster thus detects a single-layer disc as a dual-layer disc, etc. This causes the layer_size variable to be double what it should be, and the exhaustive scan MAY fail, depending on how the scan alignment works out.
I can provide a test case to reproduce the unpredictability, but the wrong logic is easy to see there.
Disclaimer: I haven't looked at any of the RS01/02 code, don't know what might be applicable there.
The text was updated successfully, but these errors were encountered:
jjr90
changed the title
RS03 is detecting the image size incorrectly for no-DM discs
RS03 is detecting the image size incorrectly for no-DM media in the exhaustive scan, causing random failures
Aug 3, 2024
The quick fix would be to determine the thresholds the same way you're determining the image size in the statements below (i.e. with the ?: operator again, or perhaps factor that out..)
To clarify, this is a bug when the user correctly specifies --no-bdr-defect-management.
This is not caused by a user error.
jjr90
changed the title
RS03 is detecting the image size incorrectly for no-DM media in the exhaustive scan, causing random failures
RS03 is using the wrong image size for exhaustive scan when the user correctly specifies no-DM, causing random failures
Aug 4, 2024
When the user correctly specifies
--no-bdr-defect-management
, in exhaustive scan mode (bypassing the "Easy shot: Locate the ecc header"), dvdisaster will determine the disc as the next size up (dual-layer instead of single-layer, etc).This is causing the exhaustive scan to fail unpredictably, in cases when it's needed:
In rs03-recognize.c:
As you can see, an SL image that's been augmented with no defect management will have an
image_sectors
GREATER THANBD_SL_SIZE
, and will thus match theimage_sectors < BD_DL_SIZE
instead.dvdisaster thus detects a single-layer disc as a dual-layer disc, etc. This causes the
layer_size
variable to be double what it should be, and the exhaustive scan MAY fail, depending on how the scan alignment works out.I can provide a test case to reproduce the unpredictability, but the wrong logic is easy to see there.
Disclaimer: I haven't looked at any of the RS01/02 code, don't know what might be applicable there.
The text was updated successfully, but these errors were encountered: