]> git.sesse.net Git - vlc/commitdiff
MKV: Chapter timestamps are already set, don't overwrite them
authorSteve Lhomme <robUx4@videolabs.io>
Mon, 23 Feb 2015 17:05:37 +0000 (17:05 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 23 Feb 2015 17:11:58 +0000 (18:11 +0100)
It is mandatory in the specs. The chapters are not supposed to be in chronological order.

Fixes #13773

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/virtual_segment.cpp

index 922b686390a0d0fb16d342b1fd26ad2540c95aec..a41abb84fc580093b595ac7908d000be8df32e51 100644 (file)
@@ -226,7 +226,7 @@ void virtual_edition_c::retimeSubChapters( virtual_chapter_c * p_vchap )
     for( size_t i = p_vchap->sub_chapters.size(); i-- > 0; )
     {
         virtual_chapter_c * p_vsubchap = p_vchap->sub_chapters[i];
-        p_vsubchap->i_virtual_start_time += p_vchap->i_virtual_start_time;
+        //p_vsubchap->i_virtual_start_time += p_vchap->i_virtual_start_time;
 
         /*FIXME we artificially extend stop time if they were there before...*/
         /* Just for comfort*/