[DVDnav-discuss] r1266 - trunk/libdvdnav/src/searching.c
rathann
subversion at mplayerhq.hu
Fri Oct 4 01:15:54 CEST 2013
Author: rathann
Date: Fri Oct 4 01:15:54 2013
New Revision: 1266
Log:
Let dvdnav_describe_title_chapters() skip PGCs with missing cells.
Fixes segfaults with a rip of Ghost Protocol.
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 01:02:55 2013 (r1265)
+++ trunk/libdvdnav/src/searching.c Fri Oct 4 01:15:54 2013 (r1266)
@@ -642,6 +642,10 @@ uint32_t dvdnav_describe_title_chapters(
printerr("Cell new row cannot be 0");
continue;
}
+ if (pgc->cell_playback == NULL) {
+ printerr("Cell missing");
+ continue;
+ }
if(ptt[i].pgn < pgc->nr_of_programs)
endcellnr = pgc->program_map[ptt[i].pgn];
More information about the DVDnav-discuss
mailing list