[vlc-commits] demux:mkv: fix NULL deferencement

Steve Lhomme git at videolan.org
Fri Feb 16 09:14:06 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Feb 16 09:12:17 2018 +0100| [a03442aafbaf71fd98d01577fe87490261db66b4] | committer: Steve Lhomme

demux:mkv: fix NULL deferencement

CID #1465294

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a03442aafbaf71fd98d01577fe87490261db66b4
---

 modules/demux/mkv/virtual_segment.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/virtual_segment.cpp b/modules/demux/mkv/virtual_segment.cpp
index dc1d61065a..eb03495d11 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -474,7 +474,7 @@ bool virtual_segment_c::UpdateCurrentToChapter( demux_t & demux )
 
         return b_has_seeked;
     }
-    else if ( p_cur_vchapter == NULL )
+    else if ( p_cur_vchapter == NULL && p_cur_vedition != NULL )
     {
         /* out of the scope of the data described by chapters, leave the edition */
         if ( p_cur_vedition->b_ordered && p_current_vchapter != NULL )



More information about the vlc-commits mailing list