dvd-sector-copy.c (recovered): Don't print comment if outside a VOB file.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 24 Feb 2022 17:00:38 +0000 (17:00 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 24 Feb 2022 17:00:38 +0000 (17:00 +0000)
dvd-sector-copy.c

index 03c2a0c..3a09336 100644 (file)
@@ -512,7 +512,7 @@ static void recovered(secaddr bad_lo, secaddr bad_hi)
   if (mapfile) {
     open_file_on_demand(mapfile, &mapfp, "bad-sector region map");
     fprintf(mapfp, "%"PRIuSEC" %"PRIuSEC"", bad_lo, bad_hi);
-    if (file)
+    if (file && id_kind(file->id) != RAW)
       fprintf(mapfp, " # %s #%d %"PRIuSEC"..%"PRIuSEC" of %"PRIuSEC" (%.1f%%)",
              id_part(file->id) ? "title" : "menu",
              id_title(file->id),