comparison searching.c @ 431:fef53ca48541 src

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^
author rathann
date Thu, 03 Oct 2013 23:15:54 +0000
parents 43c9bfd418d1
children a566d307173d
comparison
equal deleted inserted replaced
430:43c9bfd418d1 431:fef53ca48541
640 } 640 }
641 if ((cellnr = pgc->program_map[ptt[i].pgn-1]) == 0) { 641 if ((cellnr = pgc->program_map[ptt[i].pgn-1]) == 0) {
642 printerr("Cell new row cannot be 0"); 642 printerr("Cell new row cannot be 0");
643 continue; 643 continue;
644 } 644 }
645 if (pgc->cell_playback == NULL) {
646 printerr("Cell missing");
647 continue;
648 }
645 649
646 if(ptt[i].pgn < pgc->nr_of_programs) 650 if(ptt[i].pgn < pgc->nr_of_programs)
647 endcellnr = pgc->program_map[ptt[i].pgn]; 651 endcellnr = pgc->program_map[ptt[i].pgn];
648 else 652 else
649 endcellnr = 0; 653 endcellnr = 0;