fix segfault when cell is empty, patch by Simo Sorce, bug #902037
This commit is contained in:
parent
ef5e8f537b
commit
92c197cfb5
12
libdvdnav-pgc-cell_playback.patch
Normal file
12
libdvdnav-pgc-cell_playback.patch
Normal 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 &&
|
Loading…
Reference in New Issue
Block a user