Commit feb09c35 authored by Jon Fether's avatar Jon Fether Committed by Jean-Baptiste Kempf

Check for null program_map

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent f90fa9e2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment