changeset 427:c53e528905ec src

Let dvdnav_describe_title_chapters() skip PGCs with a cell number of zero. Patch by Fabian Keil $fk%fabiankeil^de&
author rathann
date Thu, 03 Oct 2013 22:30:48 +0000
parents 79921c6bb4e8
children 10c91a9d6a2e
files searching.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/searching.c	Thu Oct 03 22:21:29 2013 +0000
+++ b/searching.c	Thu Oct 03 22:30:48 2013 +0000
@@ -630,6 +630,10 @@
       goto fail;
     }
 
+    if (pgc->nr_of_cells == 0) {
+      printerr("Number of cells cannot be 0");
+      continue;
+    }
     if ((cellnr = pgc->program_map[ptt[i].pgn-1]) == 0) {
       printerr("Cell new row cannot be 0");
       continue;