[vlc-devel] [PATCH] mkv: crash fix

Jean-Baptiste Kempf jb at videolan.org
Thu Mar 17 16:58:57 CET 2016


This does not apply to HEAD.

On 17 Mar, Steve Lhomme wrote :
> ---
>  modules/demux/mkv/demux.cpp | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/modules/demux/mkv/demux.cpp b/modules/demux/mkv/demux.cpp
> index 591c69d..110508e 100644
> --- a/modules/demux/mkv/demux.cpp
> +++ b/modules/demux/mkv/demux.cpp
> @@ -663,7 +663,8 @@ bool demux_sys_t::PreloadLinked()
>  
>      /* Set current chapter */
>      p_current_vsegment->p_current_vchapter = p_current_vsegment->veditions[p_current_vsegment->i_current_edition]->getChapterbyTimecode(0);
> -    msg_Dbg( &demuxer, "NEW START CHAPTER uid=%" PRId64, p_current_vsegment->p_current_vchapter->p_chapter->i_uid );
> +    msg_Dbg( &demuxer, "NEW START CHAPTER uid=%" PRId64, p_current_vsegment->p_current_vchapter && p_current_vsegment->p_current_vchapter->p_chapter ?
> +                 p_current_vsegment->p_current_vchapter->p_chapter->i_uid : 0 );
>  
>      used_vsegments.push_back( p_current_vsegment );
>  
> -- 
> 2.7.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
With my kindest regards,

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


More information about the vlc-devel mailing list