[DVDnav-discuss] r1262 - trunk/libdvdnav/src/searching.c

rathann subversion at mplayerhq.hu
Fri Oct 4 00:30:48 CEST 2013


Author: rathann
Date: Fri Oct  4 00:30:48 2013
New Revision: 1262

Log:
Let dvdnav_describe_title_chapters() skip PGCs with a cell number of zero.

Patch by Fabian Keil $fk%fabiankeil^de&

Modified:
   trunk/libdvdnav/src/searching.c

Modified: trunk/libdvdnav/src/searching.c
==============================================================================
--- trunk/libdvdnav/src/searching.c	Fri Oct  4 00:21:29 2013	(r1261)
+++ trunk/libdvdnav/src/searching.c	Fri Oct  4 00:30:48 2013	(r1262)
@@ -630,6 +630,10 @@ uint32_t dvdnav_describe_title_chapters(
       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;


More information about the DVDnav-discuss mailing list