Mercurial > libdvdnav.hg
changeset 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 | 9ec21bb5556e |
files | searching.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/searching.c Thu Oct 03 23:02:55 2013 +0000 +++ b/searching.c Thu Oct 03 23:15:54 2013 +0000 @@ -642,6 +642,10 @@ 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];