[libdvdnav-devel] [PATCH] Check for null program_map

Jon Fether jon at fether.org
Thu Oct 23 03:00:25 CEST 2014


diff --git a/src/searching.c b/src/searching.c
index 93c7c2c..70c0f85 100644
--- a/src/searching.c
+++ b/src/searching.c
@@ -587,6 +587,11 @@ dvdnav_status_t dvdnav_get_position_in_title(dvdnav_t
*this,
     return DVDNAV_STATUS_ERR;
   }

+  if (state->pgc->program_map == NULL) {
+    printerr("Program map missing.");
+    return DVDNAV_STATUS_ERR;
+  }
+
   /* Get current sector */
   cur_sector = this->vobu.vobu_start + this->vobu.blockN;


-- 
Jonathan Fether
jon at fether.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/libdvdnav-devel/attachments/20141022/4e67a608/attachment.html>


More information about the libdvdnav-devel mailing list