Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/dvdrip master
authorMark Wooding <mdw@distorted.org.uk>
Tue, 22 Mar 2022 21:38:19 +0000 (21:38 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 22 Mar 2022 21:38:19 +0000 (21:38 +0000)
* 'master' of git.distorted.org.uk:~mdw/publish/public-git/dvdrip:
  dvd-info.c: Trigger the easy lookup if explicit chapter bounds aren't given.
  dvd-info.c: Don't forget to dump the last titleset.
  dvd-info.c: Add missing `\' in output banner.

dvd-info.c

index 0269e75..93d9567 100644 (file)
@@ -187,9 +187,9 @@ int main(int argc, char *argv[])
     } else if (STRCMP(p, ==, "dumpall")) {
       if (f&f_any) { fputc('\n', stdout); f &= ~f_any; }
       printf(";;;--------------------------------------------------------------------------\n"
-            ";;; Video management infon\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);
@@ -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");
        }
       }