dvd-info.c: Trigger the easy lookup if explicit chapter bounds aren't given.
[dvdrip] / dvd-info.c
index dd6b708..e5df886 100644 (file)
@@ -212,14 +212,14 @@ int main(int argc, char *argv[])
                     "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++;
-         if (!*p) hich = nch;
+         if (!*p) hich = -1;
          else hich = parse_int(&p, PNF_JUNK, loch, nch, "high chapter");
        }
       }