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

Jean-Baptiste Kempf jb at videolan.org
Thu Nov 6 19:41:07 CET 2014


Thanks, applied.

Le 23/10/2014 03:00, Jon Fether a écrit :
>
> 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 <mailto:jon at fether.org>
>
>
> _______________________________________________
> libdvdnav-devel mailing list
> libdvdnav-devel at videolan.org
> https://mailman.videolan.org/listinfo/libdvdnav-devel
>


-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the libdvdnav-devel mailing list