~mdw
/
dvdrip
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib.h: Disable magic attributes if the compiler doesn't understand them.
[dvdrip]
/
dvd-info.c
diff --git
a/dvd-info.c
b/dvd-info.c
index
7f8e8ae
..
93d9567
100644
(file)
--- a/
dvd-info.c
+++ b/
dvd-info.c
@@
-167,7
+167,7
@@
int main(int argc, char *argv[])
if (f&f_bogus) { usage(stderr); exit(2); }
setlocale(LC_ALL, "");
progress_init(&progress);
if (f&f_bogus) { usage(stderr); exit(2); }
setlocale(LC_ALL, "");
progress_init(&progress);
- dvdfn = argv[optind]; open_dvd(dvdfn, 0, &dvd);
+ dvdfn = argv[optind]; open_dvd(dvdfn,
O_RDONLY,
0, &dvd);
vmgi = ifoOpenVMGI(dvd);
if (!vmgi) bail("failed to open vmgi for `%s'", dvdfn);
vmgi = ifoOpenVMGI(dvd);
if (!vmgi) bail("failed to open vmgi for `%s'", dvdfn);
@@
-189,7
+189,7
@@
int main(int argc, char *argv[])
printf(";;;--------------------------------------------------------------------------\n"
";;; Video management info\n\n");
ifo_print(dvd, 0);
printf(";;;--------------------------------------------------------------------------\n"
";;; Video management info\n\n");
ifo_print(dvd, 0);
- for (j = 1; j < vmgi->vmgi_mat->vmg_nr_of_title_sets; j++) {
+ for (j = 1; j <
=
vmgi->vmgi_mat->vmg_nr_of_title_sets; j++) {
printf("\n"
";;;--------------------------------------------------------------------------\n"
";;; Video titleset %d info\n\n", j);
printf("\n"
";;;--------------------------------------------------------------------------\n"
";;; Video titleset %d info\n\n", j);
@@
-212,14
+212,14
@@
int main(int argc, char *argv[])
"title number");
nch = nchapters(ti);
if (*p != '.') {
"title number");
nch = nchapters(ti);
if (*p != '.') {
- loch = 1; hich =
nch
;
+ loch = 1; hich =
-1
;
} else {
p++; loch = parse_int(&p, PNF_JUNK, 1, nch, "low chapter");
if (*p != '-')
hich = loch;
else {
p++;
} else {
p++; loch = parse_int(&p, PNF_JUNK, 1, nch, "low chapter");
if (*p != '-')
hich = loch;
else {
p++;
- if (!*p) hich =
nch
;
+ if (!*p) hich =
-1
;
else hich = parse_int(&p, PNF_JUNK, loch, nch, "high chapter");
}
}
else hich = parse_int(&p, PNF_JUNK, loch, nch, "high chapter");
}
}