[vlc-commits] [Git][videolan/vlc][master] demux: mkv: fix dereference of optional value not set

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Dec 21 15:24:15 UTC 2024



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
2cfdc164 by Steve Lhomme at 2024-12-21T14:52:07+00:00
demux: mkv: fix dereference of optional value not set

Borken since f17327192b3ef078bae25a8f479833e86fd8c313.

- - - - -


1 changed file:

- modules/demux/mkv/virtual_segment.cpp


Changes:

=====================================
modules/demux/mkv/virtual_segment.cpp
=====================================
@@ -87,7 +87,7 @@ virtual_chapter_c * virtual_chapter_c::CreateVirtualChapter( chapter_item_c * p_
             (((!p_chap->i_end_time ||
                (*p_chap->i_end_time - p_chap->i_start_time) < (tmp - usertime_offset) )) ? tmp :
              *p_chap->i_end_time - p_chap->i_start_time + usertime_offset )
-            :*p_chap->i_end_time;
+            : (p_chap->i_end_time ? *p_chap->i_end_time : -1);
 
     virtual_chapter_c * p_vchap = new (std::nothrow) virtual_chapter_c( *p_segment, p_chap, start, stop, sub_chapters );
     if( !p_vchap )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2cfdc164d1f407b1cbb810521db1c71507061682

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2cfdc164d1f407b1cbb810521db1c71507061682
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list