fix segfault when cell is empty, patch by Simo Sorce, bug #902037

This commit is contained in:
Dominik Mierzejewski 2013-09-10 00:23:17 +02:00
parent ef5e8f537b
commit 92c197cfb5

View File

@ -0,0 +1,12 @@
diff --git a/src/searching.c b/src/searching.c
index 66f7adb..31bf0d3 100644
--- a/src/searching.c
+++ b/src/searching.c
@@ -628,6 +628,7 @@ uint32_t dvdnav_describe_title_chapters(dvdnav_t *this, int32_t title, uint64_t
else
endcellnr = 0;
+ if (!pgc->cell_playback) continue;
do {
cell = &pgc->cell_playback[cellnr-1];
if(!(cell->block_type == BLOCK_TYPE_ANGLE_BLOCK &&