#undef K
}
-#define LAYER_LIMIT 2298496 /* maximum (user) sectors on layer */
-#define DVDROM_OFFSET 0x30000 /* usual initial physical sector */
-
enum {
FLAT, /* not actually a real DVD */
SINGLE, /* disc with only one layer */
#endif
secaddr t;
+#define LAYER_LIMIT 2298496 /* maximum (user) sectors on layer */
+#define DVDROM_OFFSET 0x30000 /* usual initial physical sector */
+
if (!(f&GF_BLKDEV)) {
/* We're reading from a regular file. Assume that progress will be
* linear.
t -= DVDROM_OFFSET;
g->midpoint = t;
}
+
+#undef LAYER_LIMIT
+#undef DVDROM_OFFSET
}
static double linear_progress(const struct geometry *g,