diff searching.c @ 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 43c9bfd418d1
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;