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;
participants (1)
-
rathann