chiark
/
gitweb
/
~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
568d664
)
dvd-info.c: Trigger the easy lookup if explicit chapter bounds aren't given.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 22 Mar 2022 21:30:10 +0000
(21:30 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 22 Mar 2022 21:30:10 +0000
(21:30 +0000)
dvd-info.c
patch
|
blob
|
blame
|
history
diff --git
a/dvd-info.c
b/dvd-info.c
index dd6b708a4d8489117af7211bf00fa60b38eb28a7..e5df886c25f1244b6973f8b907585a668fd7c5cb 100644
(file)
--- a/
dvd-info.c
+++ b/
dvd-info.c
@@
-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");
}
}